/home/brandsfa/www/storage/framework/views/b57c520372a1bab0406ba5b82690427d.php
<?php $__env->startSection('title', translate('shipping_method')); ?>

<?php $__env->startSection('content'); ?>
    <div class="content container-fluid">
        <div class="d-flex justify-content-between align-items-center gap-3 mb-3">
            <h2 class="h1 mb-0 text-capitalize d-flex align-items-center gap-2">
                <img src="<?php echo e(dynamicAsset(path: 'public/assets/back-end/img/business-setup.png')); ?>" alt="">
                <?php echo e(translate('business_setup')); ?>

            </h2>
            <div class="btn-group">
                <div class="ripple-animation" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                    <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18" fill="none"
                         class="svg replaced-svg">
                        <path d="M9.00033 9.83268C9.23644 9.83268 9.43449 9.75268 9.59449 9.59268C9.75449 9.43268 9.83421 9.2349 9.83366 8.99935V5.64518C9.83366 5.40907 9.75366 5.21463 9.59366 5.06185C9.43366 4.90907 9.23588 4.83268 9.00033 4.83268C8.76421 4.83268 8.56616 4.91268 8.40616 5.07268C8.24616 5.23268 8.16644 5.43046 8.16699 5.66602V9.02018C8.16699 9.25629 8.24699 9.45074 8.40699 9.60352C8.56699 9.75629 8.76477 9.83268 9.00033 9.83268ZM9.00033 13.166C9.23644 13.166 9.43449 13.086 9.59449 12.926C9.75449 12.766 9.83421 12.5682 9.83366 12.3327C9.83366 12.0966 9.75366 11.8985 9.59366 11.7385C9.43366 11.5785 9.23588 11.4988 9.00033 11.4993C8.76421 11.4993 8.56616 11.5793 8.40616 11.7393C8.24616 11.8993 8.16644 12.0971 8.16699 12.3327C8.16699 12.5688 8.24699 12.7668 8.40699 12.9268C8.56699 13.0868 8.76477 13.1666 9.00033 13.166ZM9.00033 17.3327C7.84755 17.3327 6.76421 17.1138 5.75033 16.676C4.73644 16.2382 3.85449 15.6446 3.10449 14.8952C2.35449 14.1452 1.76088 13.2632 1.32366 12.2493C0.886437 11.2355 0.667548 10.1521 0.666992 8.99935C0.666992 7.84657 0.885881 6.76324 1.32366 5.74935C1.76144 4.73546 2.35505 3.85352 3.10449 3.10352C3.85449 2.35352 4.73644 1.7599 5.75033 1.32268C6.76421 0.88546 7.84755 0.666571 9.00033 0.666016C10.1531 0.666016 11.2364 0.884905 12.2503 1.32268C13.2642 1.76046 14.1462 2.35407 14.8962 3.10352C15.6462 3.85352 16.24 4.73546 16.6778 5.74935C17.1156 6.76324 17.3342 7.84657 17.3337 8.99935C17.3337 10.1521 17.1148 11.2355 16.677 12.2493C16.2392 13.2632 15.6456 14.1452 14.8962 14.8952C14.1462 15.6452 13.2642 16.2391 12.2503 16.6768C11.2364 17.1146 10.1531 17.3332 9.00033 17.3327ZM9.00033 15.666C10.8475 15.666 12.4206 15.0168 13.7195 13.7185C15.0184 12.4202 15.6675 10.8471 15.667 8.99935C15.667 7.15213 15.0178 5.57907 13.7195 4.28018C12.4212 2.98129 10.8481 2.33213 9.00033 2.33268C7.1531 2.33268 5.58005 2.98185 4.28116 4.28018C2.98227 5.57852 2.3331 7.15157 2.33366 8.99935C2.33366 10.8466 2.98283 12.4196 4.28116 13.7185C5.57949 15.0174 7.15255 15.6666 9.00033 15.666Z"
                              fill="currentColor"></path>
                    </svg>
                </div>
                <div class="dropdown-menu dropdown-menu-right bg-aliceblue border border-color-primary-light p-4 dropdown-w-lg">
                    <div class="d-flex align-items-center gap-2 mb-3">
                        <img width="20" src="<?php echo e(dynamicAsset(path: 'public/assets/back-end/img/note.png')); ?>" alt="">
                        <h5 class="text-primary mb-0"><?php echo e(translate('note')); ?></h5>
                    </div>
                    <p class="title-color font-weight-medium mb-0"><?php echo e(translate('please_click_the_Save_button_below_to_save_all_the_changes')); ?></p>
                </div>
            </div>
        </div>
        <?php echo $__env->make('admin-views.business-settings.business-setup-inline-menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <div class="card">
            <div class="card-header">
                <h5 class="text-capitalize mb-0 d-flex align-items-center gap-2">
                    <img width="20" src="<?php echo e(dynamicAsset(path: 'public/assets/back-end/img/delivery.png')); ?>" alt="">
                    <?php echo e(translate('shipping')); ?>

                </h5>
            </div>
            <?php ($shippingMethod=getWebConfig('shipping_method')); ?>
            <div class="card-body">
                <form action="<?php echo e(route('admin.business-settings.shipping-method.update-shipping-responsibility')); ?>" method="post">
                    <?php echo csrf_field(); ?>
                    <div class="row">
                        <div class="col-md-6">
                            <div>
                                <label class="title-color d-flex"><?php echo e(translate('shipping_responsibility')); ?></label>
                                <div class="form-control min-form-control-height h-auto form-group d-flex flex-wrap gap-2">
                                    <div class="custom-control custom-radio flex-grow-1">
                                        <input type="radio" class="custom-control-input toggle-switch-message" value="inhouse_shipping"
                                               name="shipping_method"
                                               id="inhouse-shipping" <?php echo e($shippingMethod=='inhouse_shipping'?'checked':''); ?>

                                               data-modal-id = "toggle-modal"
                                               data-toggle-id = "inhouse-shipping"
                                               data-on-image = "seller-wise-shipping.png"
                                               data-off-image = "inhouse-shipping.png"
                                               data-on-title = "<?php echo e(translate('want_to_change_the_shipping_responsibility_to_Inhouse').'?'); ?>"
                                               data-off-title = "<?php echo e(translate('want_to_change_the_shipping_responsibility_to_Vendor_Wise').'?'); ?>"
                                               data-on-message = "<p><?php echo e(translate('admin_will_handle_the_shipping_responsibilities_when_you_choose_inhouse_shipping_method').'.'); ?></p>"
                                               data-off-message = "<p><?php echo e(translate('admin_will_handle_the_shipping_responsibilities_when_you_choose_inhouse_shipping_method').'.'); ?></p>">
                                        <label class="custom-control-label" for="inhouse-shipping" ><?php echo e(translate('inhouse_shipping')); ?></label>
                                    </div>
                                    <div class="custom-control custom-radio flex-grow-1">
                                        <input type="radio" class="custom-control-input toggle-switch-message" value="sellerwise_shipping"
                                               name="shipping_method"
                                               id="seller-wise-shipping" <?php echo e($shippingMethod=='sellerwise_shipping'?'checked':''); ?>

                                               data-modal-id = "toggle-modal"
                                               data-toggle-id = "seller-wise-shipping"
                                               data-on-image = "inhouse-shipping.png"
                                               data-off-image = "seller-wise-shipping.png"
                                               data-on-title = "<?php echo e(translate('want_to_change_the_shipping_responsibility_to_Vendor_Wise').'?'); ?>"
                                               data-off-title = "<?php echo e(translate('Want_to_change_the_shipping_responsibility_to_Inhouse').'?'); ?>"
                                               data-on-message = "<p><?php echo e(translate('vendors_will_handle_the_shipping_responsibilities_when_you_choose_vendor_wise_shipping_method').'.'); ?></p>"
                                               data-off-message = "<p><?php echo e(translate('vendors_will_handle_the_shipping_responsibilities_when_you_choose_vendor_wise_shipping_method').'.'); ?></p>">
                                        <label class="custom-control-label" for="seller-wise-shipping" ><?php echo e(translate('vendor_wise_shipping')); ?></label>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <?php ($shippingType =isset($adminShipping)? $adminShipping['shipping_type']:'order_wise'); ?>
                        <div class="col-md-6">
                            <div class="">

                                <label class="title-color" id="for_inhouse_deliver"
                                       style="<?php echo e($shippingMethod != 'sellerwise_shipping' ? 'display:none':''); ?>"><?php echo e(translate('shipping_method')); ?></label>
                                <label class="title-color" id="for_seller_deliver"
                                       style="<?php echo e($shippingMethod == 'sellerwise_shipping' ? 'display:none':''); ?>"><?php echo e(translate('shipping_method_for_In-house_deliver')); ?></label>
                                <select class="form-control text-capitalize w-100 shipping-type" name="shippingCategory">
                                    <option value="0" selected disabled><?php echo e('---'.translate('select').'---'); ?></option>
                                    <option
                                            value="order_wise" <?php echo e($shippingType=='order_wise'?'selected':''); ?> ><?php echo e(translate('order_wise')); ?> </option>
                                    <option
                                            value="category_wise" <?php echo e($shippingType=='category_wise'?'selected':''); ?> ><?php echo e(translate('category_wise')); ?></option>
                                    <option
                                            value="product_wise" <?php echo e($shippingType=='product_wise'?'selected':''); ?>><?php echo e(translate('product_wise')); ?></option>
                                </select>
                                <div class="mt-2" id="product_wise_note">
                                    <p>
                                        <img width="16" class="mt-n1"
                                             src="<?php echo e(dynamicAsset(path: 'public/assets/back-end/img/danger-info.png')); ?>" alt="">
                                        <strong><?php echo e(translate('note').' '.':'); ?></strong>
                                        <?php echo e(translate('when_adding_a_product_a_product_specific_shipping_charge_is_added_Verify_that_all_of_the_products_delivery_costs_are_up_to_date').'.'); ?>

                                    </p>
                                </div>
                            </div>
                        </div>

                        <div class="col-12 mt-2">
                            <div class="d-flex justify-content-end gap-10">
                                <button type="submit" class="btn btn--primary px-5"><?php echo e(translate('save')); ?></button>
                            </div>
                        </div>
                    </div>

                </form>
            </div>
        </div>

        <div id="update_category_shipping_cost">
            <div class="card mt-3">
                <div class="px-3 pt-4">
                    <h5 class="text-capitalize mb-0 d-flex align-items-center gap-2">
                        <img width="20" src="<?php echo e(dynamicAsset(path: 'public/assets/back-end/img/delivery.png')); ?>" alt="">
                        <?php echo e(translate('category_wise_shipping_cost')); ?>

                    </h5>
                </div>
                <div class="card-body px-0">
                    <div class="table-responsive">
                        <form action="<?php echo e(route('admin.business-settings.category-shipping-cost.store')); ?>" method="POST">
                            <?php echo csrf_field(); ?>
                            <table
                                class="table table-hover table-borderless table-thead-bordered table-nowrap table-align-middle card-table w-100"
                                style="text-align: <?php echo e(Session::get('direction') === "rtl" ? 'right' : 'left'); ?>;">
                            <thead class="thead-light thead-50 text-capitalize">
                            <tr>
                                <th><?php echo e(translate('SL')); ?></th>
                                <th><?php echo e(translate('image')); ?></th>
                                <th><?php echo e(translate('category_name')); ?></th>
                                <th><?php echo e(translate('cost_per_product')); ?></th>
                                <th class="text-center"><?php echo e(translate('status')); ?></th>
                            </tr>
                            </thead>
                            <tbody>
                                <?php ($sl =0); ?>
                                <?php $__currentLoopData = $allCategoryShippingCost; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <?php if($item->category): ?>
                                        <tr>
                                            <td>
                                                <?php echo e(++$sl); ?>

                                            </td>
                                            <td>
                                                <img class="rounded" width="64"
                                                     src="<?php echo e(getValidImage(path: 'storage/app/public/category/'.$item->category['icon'], type: 'backend-category')); ?>" alt="">
                                            </td>
                                            <td>
                                                <?php echo e($item->category->name); ?>

                                            </td>
                                            <td>
                                                <input type="hidden" class="form-control w-auto" name="ids[]"
                                                       value="<?php echo e($item->id); ?>">
                                                <input type="hidden" class="form-control w-auto" name="category_ids[]"
                                                       value="<?php echo e($item->category->id); ?>">
                                                <input type="number" class="form-control w-auto" min="0" step="0.01"
                                                       name="cost[]"
                                                       value="<?php echo e(usdToDefaultCurrency(amount: $item->cost)); ?>">
                                            </td>
                                            <td>
                                                <label class="mx-auto switcher">
                                                    <input type="checkbox" class="status switcher_input"
                                                           name="multiplyQTY[]"
                                                           id=""
                                                           value="<?php echo e($item->id); ?>" <?php echo e($item->multiply_qty == 1?'checked':''); ?>>
                                                    <span class="switcher_control"></span>
                                                </label>
                                            </td>
                                        </tr>
                                    <?php endif; ?>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <tr>
                                    <td colspan="5">
                                        <div class="d-flex flex-wrap justify-content-end gap-10">
                                            <button type="submit"
                                                    class="btn btn--primary px-5"><?php echo e(translate('save')); ?></button>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        <div id="order_wise_shipping">
            <div class="card mt-3">
                <div class="card-header">
                    <h5 class="text-capitalize mb-0 d-flex align-items-center gap-2">
                        <img width="20" src="<?php echo e(dynamicAsset(path: 'public/assets/back-end/img/delivery.png')); ?>" alt="">
                        <?php echo e(translate('add_order_wise_shipping')); ?>

                    </h5>
                </div>
                <div class="card-body">
                    <form action="<?php echo e(route('admin.business-settings.shipping-method.index')); ?>" method="post">
                        <?php echo csrf_field(); ?>
                        <div class="row">
                            <div class="col-xl-4 col-md-6">
                                <div class="form-group">
                                    <div class="row justify-content-center">
                                        <div class="col-md-12">
                                            <label class="title-color d-flex" for="title"><?php echo e(translate('title')); ?></label>
                                            <input type="text" name="title" class="form-control"
                                                   placeholder="<?php echo e(translate('title')); ?>" required>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-xl-4 col-md-6">
                                <div class="form-group">
                                    <div class="row justify-content-center">
                                        <div class="col-md-12">
                                            <label class="title-color d-flex"
                                                   for="duration"><?php echo e(translate('duration')); ?></label>
                                            <input type="text" name="duration" class="form-control"
                                                   placeholder="<?php echo e(translate('ex')); ?> : <?php echo e(translate('4_to_6_days')); ?>"
                                                   required>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-xl-4 col-md-6">
                                <div class="form-group">
                                    <div class="row justify-content-center">
                                        <div class="col-md-12">
                                            <label class="title-color d-flex" for="cost"><?php echo e(translate('cost')); ?></label>
                                            <input type="number" min="0" step="0.01" max="1000000" name="cost"
                                                   class="form-control" placeholder="<?php echo e(translate('ex')); ?> :" required>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="d-flex justify-content-end gap-10">
                            <button type="submit" class="btn btn--primary px-5"><?php echo e(translate('submit')); ?></button>
                        </div>
                    </form>
                </div>
            </div>

            <div class="card mt-3">
                <div class="px-3 py-4">
                    <h5 class="text-capitalize mb-0 d-flex align-items-center gap-2">
                        <img width="20" src="<?php echo e(dynamicAsset(path: 'public/assets/back-end/img/delivery.png')); ?>" alt="">
                        <?php echo e(translate('order_wise_shipping_method')); ?>

                        <span class="badge badge-soft-dark radius-50 fz-12"><?php echo e($shippingMethods->count()); ?></span>
                    </h5>
                </div>
                <div class="table-responsive pb-3">
                    <table
                            class="table table-hover table-borderless table-thead-bordered table-nowrap table-align-middle card-table"
                            style="text-align: <?php echo e(Session::get('direction') === "rtl" ? 'right' : 'left'); ?>;">
                        <thead class="thead-light thead-50 text-capitalize">
                        <tr>
                            <th><?php echo e(translate('SL')); ?></th>
                            <th><?php echo e(translate('title')); ?></th>
                            <th><?php echo e(translate('duration')); ?></th>
                            <th><?php echo e(translate('cost')); ?></th>
                            <th class="text-center"><?php echo e(translate('status')); ?></th>
                            <th class="text-center"><?php echo e(translate('action')); ?></th>
                        </tr>
                        </thead>
                        <tbody>
                        <?php $__currentLoopData = $shippingMethods; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$method): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <th><?php echo e($key+1); ?></th>
                                <td><?php echo e($method['title']); ?></td>
                                <td>
                                    <?php echo e($method['duration']); ?>

                                </td>
                                <td>
                                    <?php echo e(setCurrencySymbol(amount: usdToDefaultCurrency(amount: $method['cost']), currencyCode: getCurrencyCode(type: 'default'))); ?>

                                </td>
                                <td>
                                    <form action="<?php echo e(route('admin.business-settings.shipping-method.update-status')); ?>"
                                          method="post" id="shipping-methods<?php echo e($method['id']); ?>-form">
                                        <?php echo csrf_field(); ?>
                                        <input type="hidden" name="id" value="<?php echo e($method['id']); ?>">
                                        <label class="switcher mx-auto">
                                            <input type="checkbox" class="switcher_input toggle-switch-message"
                                                   id="shipping-methods<?php echo e($method['id']); ?>" name="status" value="1"
                                                   <?php echo e($method->status == 1 ? 'checked' : ''); ?>

                                                   data-modal-id = "toggle-status-modal"
                                                   data-toggle-id = "shipping-methods<?php echo e($method['id']); ?>"
                                                   data-on-image = "category-status-on.png"
                                                   data-off-image = "category-status-off.png"
                                                   data-on-title = "<?php echo e(translate('want_to_Turn_ON_This_Shipping_Method').'?'); ?>"
                                                   data-off-title = "<?php echo e(translate('want_to_Turn_OFF_This_Shipping_Method').'?'); ?>"
                                                   data-on-message = "<p><?php echo e(translate('if_you_enable_this_shipping_method_will_be_shown_in_the_user_app_and_website_for_customer_checkout')); ?></p>"
                                                   data-off-message = "<p><?php echo e(translate('if_you_disable_this_shipping_method_will_not_be_shown_in_the_user_app_and_website_for_customer_checkout')); ?></p>">
                                            <span class="switcher_control"></span>
                                        </label>
                                    </form>
                                </td>
                                <td>
                                    <div class="d-flex flex-wrap justify-content-center gap-10">
                                        <a class="btn btn-outline--primary btn-sm edit"
                                           title="<?php echo e(translate('edit')); ?>"
                                           href="<?php echo e(route('admin.business-settings.shipping-method.update',[$method['id']])); ?>">
                                            <i class="tio-edit"></i>
                                        </a>
                                        <a title="<?php echo e(translate('delete')); ?>"
                                           class="btn btn-outline-danger btn-sm delete-data-without-form"
                                           data-action="<?php echo e(route('admin.business-settings.shipping-method.delete')); ?>"
                                           data-id="<?php echo e($method['id']); ?>">
                                            <i class="tio-delete"></i>
                                        </a>
                                    </div>
                                </td>
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <span id="get-shipping-type-data" data-action="<?php echo e(route('admin.business-settings.shipping-type.index')); ?>" data-success="<?php echo e(translate('shipping_method_updated_successfully').'!!'); ?>"></span>
    <span id="get-shipping-type-value" data-value="<?php echo e($shippingType); ?>"></span>
<?php $__env->stopSection(); ?>

<?php $__env->startPush('script'); ?>
    <script src="<?php echo e(dynamicAsset(path: 'public/assets/back-end/js/admin/shipping-method.js')); ?>"></script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('layouts.back-end.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/brandsfa/public_html/resources/views/admin-views/shipping-method/index.blade.php ENDPATH**/ ?>