One Hat Cyber Team
Your IP :
216.73.216.93
Server IP :
178.63.234.5
Server :
Linux whm01.ins-jo.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Server Software :
Apache
PHP Version :
8.1.32
Buat File
|
Buat Folder
Dir :
~
/
home
/
business
/
www
/
storage
/
framework
/
views
/
View File Name :
55a4b03c8db93b99a5ed727ba7df6f8aeaf53813.php
<?php $selLang = \App\Models\User\Language::where('code', request()->input('language'))->first(); $userLanguages = \App\Models\User\Language::where('user_id', Auth::guard('web')->user()->id)->get(); ?> <?php if(!empty($selLang) && $selLang->rtl == 1): ?> <?php $__env->startSection('styles'); ?> <style> form:not(.modal-form) input, form:not(.modal-form) textarea, form:not(.modal-form) select, select[name='language'] { direction: rtl; } form:not(.modal-form) .note-editor.note-frame .note-editing-area .note-editable { direction: rtl; text-align: right; } </style> <?php $__env->stopSection(); ?> <?php endif; ?> <?php $__env->startSection('content'); ?> <div class="page-header"> <h4 class="page-title"><?php echo e(__('Items')); ?></h4> <ul class="breadcrumbs"> <li class="nav-home"> <a href="<?php echo e(route('user-dashboard')); ?>"> <i class="flaticon-home"></i> </a> </li> <li class="separator"> <i class="flaticon-right-arrow"></i> </li> <li class="nav-item"> <a href="#"><?php echo e(__('Shop Management')); ?></a> </li> <li class="separator"> <i class="flaticon-right-arrow"></i> </li> <li class="nav-item"> <a href="#"><?php echo e(__('Manage Items')); ?></a> </li> <li class="separator"> <i class="flaticon-right-arrow"></i> </li> <li class="nav-item"> <a href="#"><?php echo e(__('Items')); ?></a> </li> </ul> </div> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <div class="row"> <div class="col-lg-2"> <div class="card-title d-inline-block"><?php echo e(__('Items')); ?></div> </div> <div class="col-lg-3"> <?php if(!empty($userLanguages)): ?> <select name="language" id="userLanguage" class="form-control"> <option value="" selected disabled><?php echo e(__('Select a Language')); ?></option> <?php $__currentLoopData = $userLanguages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($language->code); ?>" <?php echo e($language->code == request()->input('language') ? 'selected' : ''); ?>> <?php echo e($language->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <?php endif; ?> </div> <div class="col-lg-3"> <input type="text" class="form-control" value="<?php echo e(request('title')); ?>" placeholder="Search title" id="_title" name="search"> </div> <div class="col-lg-4 "> <a href="<?php echo e(route('user.item.type')); ?>" class="btn btn-primary float-right btn-sm"><i class="fas fa-plus"></i> <?php echo e(__('Add Item')); ?></a> <button class="btn btn-danger float-right btn-sm mr-2 d-none bulk-delete" data-href="<?php echo e(route('user.item.bulk.delete')); ?>"><i class="flaticon-interface-5"></i> <?php echo e(__('Delete')); ?></button> </div> </div> </div> <div class="card-body"> <div class="row"> <div class="col-lg-12"> <?php if(count($items) == 0): ?> <h3 class="text-center"><?php echo e(__('NO ITEMS FOUND')); ?></h3> <?php else: ?> <div class="table-responsive"> <table class="table table-striped mt-3"> <thead> <tr> <th scope="col"> <input type="checkbox" class="bulk-check" data-val="all"> </th> <th scope="col"><?php echo e(__('Title')); ?></th> <th><?php echo e(__('Price')); ?> (<?php if(!empty($userBs->base_currency_symbol)): ?> <?php echo e($userBs->base_currency_symbol); ?> <?php endif; ?>) </th> <th scope="col"><?php echo e(__('Type')); ?></th> <th scope="col"><?php echo e(__('Variations')); ?></th> <th scope="col"><?php echo e(__('Category')); ?></th> <th scope="col"><?php echo e(__('Stock')); ?></th> <?php if( $userBs->theme != 'home_nine' && $userBs->theme != 'home_ten' && $userBs->theme != 'home_eleven' && $userBs->theme != 'home_twelve'): ?> <th><?php echo e(__('Featured')); ?></th> <?php endif; ?> <?php if($userBs->theme == 'home_eight'): ?> <th><?php echo e(__('Special Offers')); ?></th> <?php endif; ?> <th><?php echo e(__('Flash')); ?></th> <th scope="col"><?php echo e(__('Actions')); ?></th> </tr> </thead> <tbody> <?php $__currentLoopData = $items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td> <input type="checkbox" class="bulk-check" data-val="<?php echo e($item->item_id); ?>"> </td> <td> <a href="<?php echo e(route('front.user.item_details', ['slug' => $item->slug, Auth::guard('web')->user()->username])); ?>" target="_blank"> <?php echo e(strlen($item->title) > 30 ? mb_substr($item->title, 0, 30, 'utf-8') . '...' : $item->title); ?> </a> </td> <td><?php echo e($item->current_price); ?></td> <td class="text-capitalize"><?php echo e($item->type); ?></td> <td class=""> <?php if($item->type == 'physical'): ?> <a class="btn btn-secondary btn-sm" href="<?php echo e(route('user.item.variations', $item->item_id) . '?language=' . request()->input('language')); ?>"> <span class="btn-label"> <?php echo e(__('Manage')); ?> </span> </a> <?php else: ?> <i class="text-muted"><?php echo e(__('digital item')); ?></i> <?php endif; ?> </td> <td> <?php echo e(convertUtf8($item->category ? $item->category : '')); ?> </td> <td> <?php $variations = App\Models\User\UserItemVariation::where('item_id', $item->item_id) ->where('language_id', $lang->id) ->get(); if (count($variations) == 0) { $variations = null; } $isFlash = App\Http\Helpers\CheckFlashItem::isFlashItem($item->item_id); ?> <?php if($item->type == 'physical' && empty($variations)): ?> <?php echo e($item->stock); ?> <?php elseif(!empty($variations)): ?> <i class="text-muted"><?php echo e(__('check variations')); ?></i> <?php else: ?> <i class="text-muted"><?php echo e(__('digital item')); ?></i> <?php endif; ?> </td> <?php if( $userBs->theme != 'home_nine' && $userBs->theme != 'home_ten' && $userBs->theme != 'home_eleven' && $userBs->theme != 'home_twelve'): ?> <td> <form class="d-inline-block" action="<?php echo e(route('user.item.feature')); ?>" id="featureForm<?php echo e($item->item_id); ?>" method="POST"> <?php echo csrf_field(); ?> <input type="hidden" name="item_id" value="<?php echo e($item->item_id); ?>"> <select name="is_feature" id="" class="form-control form-control-sm <?php if($item->is_feature): ?> bg-success <?php else: ?> bg-danger <?php endif; ?>" onchange="document.getElementById('featureForm<?php echo e($item->item_id); ?>').submit();"> <option value="1" <?php echo e($item->is_feature == 1 ? 'selected' : ''); ?>>Yes </option> <option value="0" <?php echo e($item->is_feature == 0 ? 'selected' : ''); ?>>No </option> </select> </form> </td> <?php endif; ?> <?php if($userBs->theme == 'home_eight'): ?> <td> <form class="d-inline-block" action="<?php echo e(route('user.item.specialOffer')); ?>" id="specialOffer<?php echo e($item->item_id); ?>" method="POST"> <?php echo csrf_field(); ?> <input type="hidden" name="item_id" value="<?php echo e($item->item_id); ?>"> <select name="special_offer" id="" class="form-control form-control-sm <?php if($item->special_offer == 1): ?> bg-success <?php else: ?> bg-danger <?php endif; ?>" onchange="document.getElementById('specialOffer<?php echo e($item->item_id); ?>').submit();"> <option value="1" <?php echo e($item->special_offer == 1 ? 'selected' : ''); ?>> Yes </option> <option value="0" <?php echo e($item->special_offer == 0 ? 'selected' : ''); ?>> No </option> </select> </form> </td> <?php endif; ?> <td> <form class="d-inline-block" action="<?php echo e(route('user.item.flash.remove')); ?>" id="flashForm<?php echo e($item->item_id); ?>" method="POST"> <?php echo csrf_field(); ?> <input type="hidden" name="item_id" value="<?php echo e($item->item_id); ?>"> <select name="special_offer" id="" data-item-id="<?php echo e($item->item_id); ?>" class="form-control manageFlash form-control-sm <?php if($isFlash == 1): ?> bg-success <?php else: ?> bg-danger <?php endif; ?>"> <option value="1" <?php echo e($isFlash == 1 ? 'selected' : ''); ?>> Yes </option> <option value="0" <?php echo e($isFlash == 0 ? 'selected' : ''); ?>> No </option> </select> </form> <?php if($isFlash): ?> <a class="btn btn-sm btn-primary" href="javascript:void(0)" data-toggle="modal" data-target="#flashmodal<?php echo e($item->item_id); ?>"> Edit </a> <?php endif; ?> </td> <td> <div class="dropdown"> <button class="btn btn-info btn-sm dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Actions </button> <div class="dropdown-menu" aria-labelledby="dropdownMenuButton"> <a class="dropdown-item" href="<?php echo e(route('user.item.edit', $item->item_id) . '?language=' . request()->input('language')); ?>" target="_blank">Edit</a> <form class="deleteform d-block" action="<?php echo e(route('user.item.delete')); ?>" method="post"> <?php echo csrf_field(); ?> <input type="hidden" name="item_id" value="<?php echo e($item->item_id); ?>"> <button type="submit" class="deletebtn"> Delete </button> </form> </div> </div> <!-- Flash Sale Modal --> <div class="modal fade" id="flashmodal<?php echo e($item->item_id); ?>" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLongTitle">Flash Sale Setting </h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <form class="modal-form " id="modalform<?php echo e($item->item_id); ?>" enctype="multipart/form-data" action="<?php echo e(route('user.item.setFlashSale', $item->item_id)); ?>" method="POST"> <?php echo csrf_field(); ?> <div class="form-group"> <label for=""> Start Date **</label> <input type="text" value="<?php echo e($item->start_date); ?>" name="start_date" class="form-control datepicker" autocomplete="off" placeholder=""> <p id="errstart_date" class=" mb-0 text-danger em"> </p> </div> <div class="form-group"> <label for="">Start Time **</label> <input type="text" name="start_time" value="<?php echo e($item->start_time); ?>" class="form-control timepicker" autocomplete="off" placeholder=""> <p id="errstart_time" class=" mb-0 text-danger em"> </p> </div> <div class="form-group"> <label for="">End Date **</label> <input type="text" name="end_date" value="<?php echo e($item->end_date); ?>" class="form-control datepicker" autocomplete="off" placeholder=""> <p id="errend_date" class=" mb-0 text-danger em"> </p> </div> <div class="form-group"> <label for="">End Time **</label> <input type="text" name="end_time" value="<?php echo e($item->end_time); ?>" class="form-control timepicker" autocomplete="off" placeholder=""> <p id="errend_time" class=" mb-0 text-danger em"> </p> </div> <div class="form-group"> <label for="">Discount **</label> <div class="input-group"> <input type="number" name="flash_percentage" value="<?php echo e($item->flash_percentage); ?>" class="form-control " aria-describedby="basic-addon1" autocomplete="off" placeholder=""> <div class="input-group-prepend"> <span class="input-group-text" id="basic-addon1">%</span> </div> </div> <p id="errflash_percentage" class=" mb-0 text-danger em"> </p> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> <button type="submit" data-id="<?php echo e($item->item_id); ?>" class="submitBtn btn btn-primary">Submit</button> </div> </form> </div> </div> </div> </div> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> <nav class="pagination-nav pull-right <?php echo e($items->count() > 15 ? 'mb-4' : ''); ?>"> <?php echo e($items->appends(['language' => request()->input('language')])->links()); ?> </nav> </div> <?php endif; ?> </div> </div> </div> </div> </div> </div> <form id="searchForm" class="d-none" action="<?php echo e(route('user.item.index') . '?language=' . request()->input('language')); ?>" method="get"> <input type="hidden" id="language" name="language" value="<?php echo e(!empty(request()->input('language')) ? request()->input('language') : ''); ?>"> <input type="hidden" id="title" name="title" value="<?php echo e(!empty(request()->input('title')) ? request()->input('title') : ''); ?>"> <button id="searchButton" type="submit"></button> </form> <?php $__env->stopSection(); ?> <?php $__env->startSection('scripts'); ?> <script> "use strict"; let language = ''; let vcard = ''; let title = ''; $(document).on('change', "#userLanguage", function() { language = $(this).val(); var title = '<?= request('title') ?>'; location.href = "?language=" + language + "&title=" + title; }) $(document).on('change', '#_title', function() { title = $(this).val(); $('#title').val(title); $('#searchButton').click(); }) </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('user.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/business/public_html/resources/views/user/item/index.blade.php ENDPATH**/ ?>