⚝
One Hat Cyber Team
⚝
Your IP:
3.142.135.247
Server IP:
162.254.39.145
Server:
Linux premium289.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
Server Software:
LiteSpeed
PHP Version:
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
favoaysf
/
www
/
storage
/
framework
/
views
/
View File Name :
54d22822b1d6601556dedf97bab2cd9d.php
<?php $__env->startSection('content'); ?> <div class="container-fluid"> <!-- Page Heading --> <div class="card mb-4"> <div class="card-body"> <div class="d-sm-flex align-items-center justify-content-between"> <h3 class="mb-0 bc-title"><b><?php echo e(__('Update Digital Product')); ?></b> </h3> <a class="btn btn-primary btn-sm" href="<?php echo e(route('back.item.index')); ?>"><i class="fas fa-chevron-left"></i> <?php echo e(__('Back')); ?></a> </div> </div> </div> <div class="row"> <div class="col-lg-12"> <?php echo $__env->make('alerts.alerts', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> </div> </div> <!-- Nested Row within Card Body --> <form class="admin-form" action="<?php echo e(route('back.item.update',$item->id)); ?>" method="POST" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <?php echo method_field('PUT'); ?> <div class="row"> <div class="col-lg-8"> <div class="card"> <div class="card-body"> <div class="form-group"> <label for="name"><?php echo e(__('Name')); ?> *</label> <input type="text" name="name" class="form-control item-name" id="name" placeholder="<?php echo e(__('Enter Name')); ?>" value="<?php echo e($item->name); ?>" > </div> <div class="form-group"> <label for="slug"><?php echo e(__('Slug')); ?> *</label> <input type="text" name="slug" class="form-control" id="slug" placeholder="<?php echo e(__('Enter Slug')); ?>" value="<?php echo e($item->slug); ?>" > </div> </div> </div> <div class="card"> <div class="card-body"> <div class="form-group pb-0 mb-0"> <label class="d-block"><?php echo e(__('Featured Image')); ?> *</label> </div> <div class="form-group pb-0 pt-0 mt-0 mb-0"> <img class="admin-img lg" src="<?php echo e($item->photo ? asset('assets/images/'.$item->photo) : asset('assets/images/placeholder.png')); ?>" > </div> <div class="form-group position-relative "> <label class="file"> <input type="file" accept="image/*" class="upload-photo" name="photo" id="file" aria-label="File browser example"> <span class="file-custom text-left"><?php echo e(__('Upload Image...')); ?></span> </label> <br> <span class="mt-1 text-info"><?php echo e(__('Image Size Should Be 800 x 800. or square size')); ?></span> </div> </div> </div> <div class="card"> <div class="card-body"> <div class="form-group pb-0 mb-0"> <label><?php echo e(__('Gallery Images')); ?> </label> </div> <div class="form-group pb-0 pt-0 mt-0 mb-0"> <div id="gallery-images"> <div class="d-block gallery_image_view"> <?php $__empty_1 = true; $__currentLoopData = $item->galleries; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $gallery): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <div class="single-g-item d-inline-block m-2"> <span data-toggle="modal" data-target="#confirm-delete" href="javascript:;" data-href="<?php echo e(route('back.item.gallery.delete',$gallery->id)); ?>" class="remove-gallery-img"> <i class="fas fa-trash"></i> </span> <a class="popup-link" href="<?php echo e($gallery->photo ? asset('assets/images/'.$gallery->photo) : asset('assets/images/placeholder.png')); ?>"> <img class="admin-gallery-img" src="<?php echo e($gallery->photo ? asset('assets/images/'.$gallery->photo) : asset('assets/images/placeholder.png')); ?>" alt="No Image Found"> </a> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <h6><b><?php echo e(__('No Images Added')); ?></b></h6> <?php endif; ?> </div> </div> </div> <div class="form-group position-relative "> <label class="file"> <input type="file" accept="image/*" name="galleries[]" id="gallery_file" aria-label="File browser example" accept="image/*" multiple> <span class="file-custom text-left"><?php echo e(__('Upload Image...')); ?></span> </label> <br> <span class="mt-1 text-info"><?php echo e(__('Image Size Should Be 800 x 800. or square size')); ?></span> </div> </div> </div> <div class="card"> <div class="card-body"> <div class="form-group"> <label for="file_type"><?php echo e(__('Select Type')); ?> *</label> <select class="form-control" id="file_type" name="file_type"> <option value="file" <?php echo e($item->file_type =='file' ? 'selected' : ''); ?> ><?php echo e(__('File')); ?></option> <option value="link" <?php echo e($item->file_type =='link' ? 'selected' : ''); ?> ><?php echo e(__('Link')); ?></option> </select> </div> <div class="form-group view_file <?php echo e($item->file_type == 'file' ? '' : 'd-none'); ?> "> <label for="file"><?php echo e(__('File')); ?> *</label> <div class="input-group mb-1"> <input type="file" class="form-control" id="file" name="file"> </div> <?php if(file_exists('assets/files/'.$item->file)): ?> <a download href="<?php echo e(asset('assets/files/'.$item->file)); ?>"><?php echo e(__('Download File')); ?></a> <?php endif; ?> <p class="text-warning"><?php echo e(__('File type must be zip')); ?></p> </div> <div class="form-group view_link <?php echo e($item->file_type == 'link' ? '' : 'd-none'); ?>"> <label for="link"><?php echo e(__('Link')); ?> *</label> <div class="input-group mb-3"> <input type="text" id="link" name="link" class="form-control" value="<?php echo e($item->link); ?>" placeholder="<?php echo e(__('Enter Link')); ?>"> </div> </div> </div> </div> <div class="card"> <div class="card-body"> <div class="form-group"> <label for="sort_details"><?php echo e(__('Short Description')); ?> *</label> <textarea name="sort_details" id="sort_details" class="form-control" placeholder="<?php echo e(__('Short Description')); ?>" ><?php echo e($item->sort_details); ?></textarea> </div> <div class="form-group"> <label for="details"><?php echo e(__('Description')); ?> *</label> <textarea name="details" id="details" class="form-control text-editor" rows="6" placeholder="<?php echo e(__('Enter Description')); ?>" ><?php echo e($item->details); ?></textarea> </div> </div> </div> <div class="card"> <div class="card-body"> <div class="form-group"> <label for="tags"><?php echo e(__('Product Tags')); ?> </label> <input type="text" name="tags" class="tags" id="tags" placeholder="<?php echo e(__('Tags')); ?>" value="<?php echo e($item->tags); ?>"> </div> <div class="form-group"> <label class="switch-primary"> <input type="checkbox" class="switch switch-bootstrap status radio-check" name="is_specification" value="1" <?php echo e($item->is_specification ==1 ? 'checked' : ''); ?>> <span class="switch-body"></span> <span class="switch-text"><?php echo e(__('Specifications')); ?></span> </label> </div> <div id="specifications-section" class="<?php echo e($item->is_specification == 0 ? 'd-none' : ''); ?>"> <?php if(!empty($specification_name)): ?> <?php $__currentLoopData = array_combine($specification_name,$specification_description); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $name => $description): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="d-flex"> <div class="flex-grow-1"> <div class="form-group"> <input type="text" class="form-control" name="specification_name[]" placeholder="<?php echo e(__('Specification Name')); ?>" value="<?php echo e($name); ?>"> </div> </div> <div class="flex-grow-1"> <div class="form-group"> <input type="text" class="form-control" name="specification_description[]" placeholder="<?php echo e(__('Specification description')); ?>" value="<?php echo e($description); ?>"> </div> </div> <div class="flex-btn"> <?php if($loop->first): ?> <button type="button" class="btn btn-success add-specification" data-text="<?php echo e(__('Specification Name')); ?>" data-text1="<?php echo e(__('Specification Description')); ?>"> <i class="fa fa-plus"></i> </button> <?php else: ?> <button type="button" class="btn btn-danger remove-spcification" data-text="<?php echo e(__('Specification Name')); ?>" data-text1="<?php echo e(__('Specification Description')); ?>"> <i class="fa fa-minus"></i> </button> <?php endif; ?> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php else: ?> <div class="d-flex"> <div class="flex-grow-1"> <div class="form-group"> <input type="text" class="form-control" name="specification_name[]" placeholder="<?php echo e(__('Specification Name')); ?>" value=""> </div> </div> <div class="flex-grow-1"> <div class="form-group"> <input type="text" class="form-control" name="specification_description[]" placeholder="<?php echo e(__('Specification description')); ?>" value=""> </div> </div> <div class="flex-btn"> <button type="button" class="btn btn-success add-specification" data-text="<?php echo e(__('Specification Name')); ?>" data-text1="<?php echo e(__('Specification Description')); ?>"> <i class="fa fa-plus"></i> </button> </div> </div> <?php endif; ?> </div> </div> </div> <div class="card"> <div class="card-body"> <div class="form-group"> <label for="meta_keywords"><?php echo e(__('Meta Keywords')); ?> </label> <input type="text" name="meta_keywords" class="tags" id="meta_keywords" placeholder="<?php echo e(__('Enter Meta Keywords')); ?>" value="<?php echo e($item->meta_keywords); ?>"> </div> <div class="form-group"> <label for="meta_description"><?php echo e(__('Meta Description')); ?> </label> <textarea name="meta_description" id="meta_description" class="form-control" rows="5" placeholder="<?php echo e(__('Enter Meta Description')); ?>"><?php echo e($item->meta_description); ?></textarea> </div> </div> </div> </div> <div class="col-lg-4"> <div class="card"> <div class="card-body"> <input type="hidden" class="check_button" name="is_button" value="0"> <button type="submit" class="btn btn-secondary mr-2"><?php echo e(__('Save')); ?></button> <button type="submit" class="btn btn-info save__edit"><?php echo e(__('Save & Edit')); ?></button> </div> </div> <div class="card"> <div class="card-body"> <div class="form-group"> <label for="discount_price"><?php echo e(__('Current Price')); ?> *</label> <div class="input-group mb-3"> <div class="input-group-prepend"> <span class="input-group-text"><?php echo e($curr->sign); ?></span> </div> <input type="text" id="discount_price" name="discount_price" class="form-control" placeholder="<?php echo e(__('Enter Current Price')); ?>" min="1" step="0.1" value="<?php echo e(round($item->discount_price * $curr->value,2)); ?>" > </div> </div> <div class="form-group"> <label for="previous_price"><?php echo e(__('Previous Price')); ?> </label> <div class="input-group mb-3"> <div class="input-group-prepend"> <span class="input-group-text"><?php echo e($curr->sign); ?></span> </div> <input type="text" id="previous_price" name="previous_price" class="form-control" placeholder="<?php echo e(__('Enter Previous Price')); ?>" min="1" step="0.1" value="<?php echo e(round($item->previous_price*$curr->value ,2)); ?>" > </div> </div> </div> </div> <div class="card"> <div class="card-body"> <div class="form-group"> <label for="category_id"><?php echo e(__('Select Category')); ?> *</label> <select name="category_id" id="category_id" data-href="<?php echo e(route('back.get.subcategory')); ?>" class="form-control" > <?php $__currentLoopData = DB::table('categories')->whereStatus(1)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($cat->id); ?>" <?php echo e($cat->id == $item->category_id ? 'selected' : ''); ?>><?php echo e($cat->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="form-group"> <label for="subcategory_id"><?php echo e(__('Select Sub Category')); ?> </label> <select name="subcategory_id" id="subcategory_id" class="form-control" data-href="<?php echo e(route('back.get.childcategory')); ?>"> <option value=""><?php echo e(__('Select one')); ?></option> <?php $__currentLoopData = DB::table('subcategories')->where('category_id',$item->category_id)->whereStatus(1)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $subcat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($subcat->id); ?>" <?php echo e($subcat->id == $item->subcategory_id ? 'selected' : ''); ?>><?php echo e($subcat->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="form-group"> <label for="childcategory_id"><?php echo e(__('Select Child Category')); ?> </label> <select name="childcategory_id" id="childcategory_id" class="form-control"> <option value=""><?php echo e(__('Select one')); ?></option> <?php $__currentLoopData = DB::table('chield_categories')->where('category_id',$item->category_id)->whereStatus(1)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $chieldcategory): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($chieldcategory->id); ?>" <?php echo e($chieldcategory->id == $item->childcategory_id ? 'selected' : ''); ?>><?php echo e($chieldcategory->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="form-group"> <label for="brand_id"><?php echo e(__('Select Brand')); ?> </label> <select name="brand_id" id="brand_id" class="form-control" > <option value="" selected><?php echo e(__('Select Brand')); ?></option> <?php $__currentLoopData = DB::table('brands')->whereStatus(1)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $brand): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($brand->id); ?>" <?php echo e($brand->id == $item->brand_id ? 'selected' : ''); ?> ><?php echo e($brand->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div> </div> <div class="card"> <div class="card-body"> <div class="form-group"> <label for="tax_id"><?php echo e(__('Select Tax')); ?> *</label> <select name="tax_id" id="tax_id" class="form-control"> <option value=""><?php echo e(__('Select One')); ?></option> <?php $__currentLoopData = DB::table('taxes')->whereStatus(1)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tax): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($tax->id); ?>" <?php echo e($item->tax_id == $tax->id ? 'selected' : ''); ?> ><?php echo e($tax->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="form-group"> <label for="sku"><?php echo e(__('SKU')); ?> *</label> <input type="text" name="sku" class="form-control" id="sku" placeholder="<?php echo e(__('Enter SKU')); ?>" value="<?php echo e($item->sku); ?>" > </div> <div class="form-group"> <label for="video"><?php echo e(__('Video Link')); ?> </label> <input type="text" name="video" class="form-control" id="video" placeholder="<?php echo e(__('Enter Video Link')); ?>" value="<?php echo e($item->video); ?>" > </div> </div> </div> </div> </div> </form> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('scripts'); ?> <script> $(document).on('change','#file_type',function(){ let type = $(this).val(); if(type == 'file'){ $('.view_link').addClass('d-none'); $('.view_file').removeClass('d-none'); $('.view_file input').prop('required',true); $('.view_link input').prop('required',false); }else{ $('.view_link').removeClass('d-none'); $('.view_file').addClass('d-none'); $('.view_file input').prop('required',false); $('.view_link input').prop('required',true); } }) </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('master.back', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/favoaysf/public_html/resources/views/back/item/digital/edit.blade.php ENDPATH**/ ?>