관리-도구
편집 파일: 0955b49cd3dd858ff6e09d67045f4a1e.php
<form action="<?php echo e(route('admin.orders.list', ['status' => request('status')])); ?>" id="form-data" method="GET"> <div class="offcanvas offcanvas-end" tabindex="-1" id="offcanvasOrderFilter" aria-labelledby="offcanvasOrderFilterLabel" style="--bs-offcanvas-width: 500px;"> <div class="offcanvas-header bg-body"> <h3 class="mb-0"><?php echo e(translate('Filter')); ?></h3> <button type="button" class="btn btn-circle bg-white text-dark fs-10" style="--size: 1.5rem;" data-bs-dismiss="offcanvas" aria-label="Close"> <i class="fi fi-rr-cross"></i> </button> </div> <div class="offcanvas-body"> <div class="p-12 p-sm-20 bg-section rounded mb-3 mb-sm-20 overflow-wrap-anywhere"> <div class="row g-4"> <div class="col-12"> <?php if(request('delivery_man_id')): ?> <input type="hidden" name="delivery_man_id" value="<?php echo e(request('delivery_man_id')); ?>"> <?php endif; ?> <label for="" class="form-label"><?php echo e(translate('Date_Type')); ?></label> <div class="select-wrapper"> <select class="form-select" name="date_type" id="date_type"> <option value="all" <?php echo e(empty($dateType) ? 'selected' : ''); ?>> <?php echo e(translate('Overall_All')); ?> </option> <option value="today" <?php echo e($dateType == 'today' ? 'selected' : ''); ?>> <?php echo e(translate('Today')); ?> </option> <option value="this_week" <?php echo e($dateType == 'this_week' ? 'selected' : ''); ?>> <?php echo e(translate('this_Week')); ?> </option> <option value="this_month" <?php echo e($dateType == 'this_month' ? 'selected' : ''); ?>> <?php echo e(translate('this_Month')); ?> </option> <option value="this_year" <?php echo e($dateType == 'this_year' ? 'selected' : ''); ?>> <?php echo e(translate('this_Year')); ?> </option> <option value="custom_date" <?php echo e($dateType == 'custom_date' ? 'selected' : ''); ?>> <?php echo e(translate('custom_Date')); ?> </option> </select> </div> </div> <div class="col-sm-6" id="from_div"> <label for="" class="form-label"> <?php echo e(translate('Start_Date')); ?> <span class="tooltip-icon" data-bs-toggle="tooltip" data-bs-title="<?php echo e(translate('Enter_Start_Date')); ?>"> <i class="fi fi-sr-info"></i> </span> </label> <input type="date" name="from" value="<?php echo e($from); ?>" id="from_date" class="form-control"> </div> <div class="col-sm-6" id="to_div"> <label for="" class="form-label"> <?php echo e(translate('End_Date')); ?> <span class="tooltip-icon" data-bs-toggle="tooltip" data-bs-title="<?php echo e(translate('Enter_End_Date')); ?>"> <i class="fi fi-sr-info"></i> </span> </label> <input class="form-control" type="date" value="<?php echo e($to); ?>" name="to" id="to_date"> </div> </div> </div> <div class="p-12 p-sm-20 bg-section rounded mb-3 mb-sm-20 overflow-wrap-anywhere"> <label for="" class="form-label"><?php echo e(translate('Show_Order_For')); ?></label> <div class="bg-white rounded p-3"> <div class="d-flex justify-content-between align-items-center flex-wrap gap-3"> <div class="d-flex gap-2 flex-grow-1"> <input class="form-check-input radio--input m-0" type="radio" name="filter" id="inlineRadioAll" value="all" <?php echo e(empty($filter) || $filter == 'all' ? 'checked' : ''); ?>> <label class="form-check-label fs-12 cursor-pointer" for="inlineRadioAll"> <?php echo e(translate('All')); ?> </label> </div> <div class="d-flex gap-2 flex-grow-1"> <input class="form-check-input radio--input m-0" type="radio" name="filter" id="inlineRadioInhouse" value="admin" <?php echo e($filter == 'admin' ? 'checked' : ''); ?>> <label class="form-check-label fs-12 cursor-pointer" for="inlineRadioInhouse"> <?php echo e(translate('In-house_Order')); ?> </label> </div> <div class="d-flex gap-2 flex-grow-1"> <input class="form-check-input radio--input m-0" type="radio" name="filter" id="inlineRadioVendor" value="seller" <?php echo e($filter == 'seller' ? 'checked' : ''); ?>> <label class="form-check-label fs-12 cursor-pointer" for="inlineRadioVendor"> <?php echo e(translate('Vendor_Order')); ?> </label> </div> </div> <?php if(($status == 'all' || $status == 'delivered') && !request()->has('delivery_man_id')): ?> <div class="p-12 p-sm-20 bg-section rounded d-flex justify-content-between align-items-center flex-wrap gap-3 mt-20"> <div class="d-flex gap-2 flex-grow-1"> <input class="form-check-input checkbox--input m-0 cursor-pointer" type="checkbox" id="inlineCheckboxPosOrder" value="pos" name="order_types[]"> <label class="form-check-label fs-12 cursor-pointer" for="inlineCheckboxPosOrder" <?php echo e(in_array('pos', $orderTypes) ? 'checked' : ''); ?>> <?php echo e(translate('Only_POS_Orders')); ?> </label> </div> <div class="d-flex gap-2 flex-grow-1"> <input class="form-check-input checkbox--input m-0 cursor-pointer" type="checkbox" id="inlineCheckboxWebsiteOrder" value="default_type" name="order_types[]"> <label class="form-check-label fs-12 cursor-pointer" for="inlineCheckboxWebsiteOrder" <?php echo e(in_array('default_type', $orderTypes) ? 'checked' : ''); ?>> <?php echo e(translate('Only_Website_Orders')); ?> </label> </div> </div> <?php endif; ?> </div> </div> <div class="p-12 p-sm-20 bg-section rounded mb-3 mb-sm-20 overflow-wrap-anywhere vendor-list-dropdown-section d--none"> <label class="form-label" for="vendor_list"><?php echo e(translate('Vendor')); ?></label> <select class="custom-select form-control" name="seller_id" id="vendor_list"> <option value="all"> <?php echo e('---'.translate('Select_Vendor').'---'); ?> </option> <?php $__currentLoopData = $sellers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $seller): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($seller?->shop): ?> <option class="text-left text-capitalize" value="<?php echo e($seller->id); ?>" <?php echo e($seller->id == request('seller_id') ? 'selected' : ''); ?>> <?php echo e($seller?->shop?->name); ?> </option> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <?php if($status == 'all'): ?> <div class="p-12 p-sm-20 bg-section rounded mb-3 mb-sm-20 overflow-wrap-anywhere"> <label for="" class="form-label"><?php echo e(translate('Order_Status')); ?></label> <div class="bg-white rounded p-3"> <div class="row gx-3 gy-4" style="--bs-gutter-y: 2rem;"> <div class="col-sm-6"> <div class="d-flex gap-2"> <input class="form-check-input checkbox--input m-0 cursor-pointer" type="checkbox" id="inlineCheckbox1" name="order_current_status[]" value="pending" <?php echo e(in_array('pending', $orderStatus) ? 'checked' : ''); ?>> <label class="form-check-label fs-12 cursor-pointer" for="inlineCheckbox1"> <?php echo e(translate('Pending')); ?> </label> </div> </div> <div class="col-sm-6"> <div class="d-flex gap-2"> <input class="form-check-input checkbox--input m-0 cursor-pointer" type="checkbox" id="inlineCheckbox2" name="order_current_status[]" value="confirmed" <?php echo e(in_array('confirmed', $orderStatus) ? 'checked' : ''); ?>> <label class="form-check-label fs-12 cursor-pointer" for="inlineCheckbox2"> <?php echo e(translate('Confirmed')); ?> </label> </div> </div> <div class="col-sm-6"> <div class="d-flex gap-2"> <input class="form-check-input checkbox--input m-0 cursor-pointer" type="checkbox" id="inlineCheckbox3" name="order_current_status[]" value="processing" <?php echo e(in_array('processing', $orderStatus) ? 'checked' : ''); ?>> <label class="form-check-label fs-12 cursor-pointer" for="inlineCheckbox3"> <?php echo e(translate('Packaging')); ?> </label> </div> </div> <div class="col-sm-6"> <div class="d-flex gap-2"> <input class="form-check-input checkbox--input m-0 cursor-pointer" type="checkbox" id="inlineCheckbox4" name="order_current_status[]" value="out_for_delivery" <?php echo e(in_array('out_for_delivery', $orderStatus) ? 'checked' : ''); ?>> <label class="form-check-label fs-12 cursor-pointer" for="inlineCheckbox4"> <?php echo e(translate('Out_For_Delivery')); ?> </label> </div> </div> <div class="col-sm-6"> <div class="d-flex gap-2"> <input class="form-check-input checkbox--input m-0 cursor-pointer" type="checkbox" id="inlineCheckbox5" name="order_current_status[]" value="delivered" <?php echo e(in_array('delivered', $orderStatus) ? 'checked' : ''); ?>> <label class="form-check-label fs-12 cursor-pointer" for="inlineCheckbox5"> <?php echo e(translate('Delivered')); ?> </label> </div> </div> <div class="col-sm-6"> <div class="d-flex gap-2"> <input class="form-check-input checkbox--input m-0 cursor-pointer" type="checkbox" id="inlineCheckbox6" name="order_current_status[]" value="canceled" <?php echo e(in_array('canceled', $orderStatus) ? 'checked' : ''); ?>> <label class="form-check-label fs-12 cursor-pointer" for="inlineCheckbox6"> <?php echo e(translate('Canceled')); ?> </label> </div> </div> <div class="col-sm-6"> <div class="d-flex gap-2"> <input class="form-check-input checkbox--input m-0 cursor-pointer" type="checkbox" id="inlineCheckbox7" name="order_current_status[]" value="returned" <?php echo e(in_array('returned', $orderStatus) ? 'checked' : ''); ?>> <label class="form-check-label fs-12 cursor-pointer" for="inlineCheckbox7"> <?php echo e(translate('Returned')); ?> </label> </div> </div> <div class="col-sm-6"> <div class="d-flex gap-2"> <input class="form-check-input checkbox--input m-0 cursor-pointer" type="checkbox" id="inlineCheckbox8" name="order_current_status[]" value="failed" <?php echo e(in_array('failed', $orderStatus) ? 'checked' : ''); ?>> <label class="form-check-label fs-12 cursor-pointer" for="inlineCheckbox8"> <?php echo e(translate('Failed')); ?> </label> </div> </div> </div> </div> </div> <?php endif; ?> <div class="p-12 p-sm-20 bg-section rounded mb-3 mb-sm-20 overflow-wrap-anywhere"> <label for="" class="form-label"><?php echo e(translate('Payment_Status')); ?></label> <div class="bg-white rounded p-3"> <div class="row gx-3 gy-4" style="--bs-gutter-y: 2rem;"> <div class="col-sm-6"> <div class="d-flex gap-2"> <input class="form-check-input checkbox--input m-0 cursor-pointer" type="checkbox" id="inlineCheckboxPaid" name="payment_status[]" value="paid" <?php echo e(in_array('paid', $paymentPaidStatus) ? 'checked' : ''); ?>> <label class="form-check-label fs-12 cursor-pointer" for="inlineCheckboxPaid"> <?php echo e(translate('Paid')); ?> </label> </div> </div> <div class="col-sm-6"> <div class="d-flex gap-2"> <input class="form-check-input checkbox--input m-0 cursor-pointer" type="checkbox" id="inlineCheckboxUnpaid" name="payment_status[]" value="unpaid" <?php echo e(in_array('unpaid', $paymentPaidStatus) ? 'checked' : ''); ?>> <label class="form-check-label fs-12 cursor-pointer" for="inlineCheckboxUnpaid"> <?php echo e(translate('Unpaid')); ?> </label> </div> </div> </div> </div> </div> <div class="p-12 p-sm-20 bg-section rounded mb-3 mb-sm-20 overflow-wrap-anywhere"> <label class="form-label" for="customer"><?php echo e(translate('Customer')); ?></label> <input type="hidden" id='customer_id' name="customer_id" value="<?php echo e(request('customer_id') ? request('customer_id') : 'all'); ?>"> <select id="customer_id_value" class="custom-select"> <option value=""><?php echo e(translate('All_Customer')); ?></option> <?php $__currentLoopData = $customers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $customer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($customer['id']); ?>" <?php echo e(request('customer_id') == $customer['id'] ? 'selected' : ''); ?>> <?php echo e($customer['text']); ?> </option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div> <div class="offcanvas-footer shadow-popup"> <div class="d-flex justify-content-center gap-3 bg-white px-4 py-3"> <a class="btn btn-secondary w-100" href="<?php echo e(route('admin.orders.list', ['status' => request('status'), 'delivery_man_id' => request('delivery_man_id')])); ?>"> <?php echo e(translate('Clear_Filter')); ?> </a> <button type="submit" class="btn btn-primary w-100"> <?php echo e(translate('Apply')); ?> </button> </div> </div> </div> </form> <?php /**PATH /home2/slnssare/public_html/resources/views/admin-views/order/partials/_filter-offcanvas.blade.php ENDPATH**/ ?>