<?php $__env->startSection('content'); ?>
<?php
use App\Models\ShippingDefault;
use App\Models\Addressses;
use App\Models\Customers;
use App\Models\Vendors;
$Def=ShippingDefault::orderBy('id','desc')->first();
?>
  <title><?php echo e(trans('admin.ShippingOrder')); ?></title>

    <main id="js-page-content" role="main" class="page-content">
                    <ol class="breadcrumb page-breadcrumb">
                        <li class="breadcrumb-item"><a href="javascript:void(0);"> <?php echo e(trans('admin.Shipping')); ?></a></li>
                        <li class="breadcrumb-item active"><?php echo e(trans('admin.ShippingOrder')); ?></li>
                        <li class="position-absolute pos-top pos-right d-none d-sm-block"><span
                                class="js-get-date"></span></li>
                    </ol>
                   
                    <div class="row">
                        <div class="col-xl-12">
                            <div id="panel-1" class="panel">
                                <div class="panel-hdr">
                                    <h2>
                                         <span class="fw-300"><i><?php echo e(trans('admin.ShippingOrder')); ?></i></span>
                                    </h2>

                                    <div class="panel-toolbar">
         
                              
                                        
                                        <button type="button" class="btn btn-default" data-toggle="modal" data-target="#default-example-modal-lg"><?php echo e(trans('admin.AddNew')); ?></button>
                            
                                        
                                        
                                        <button class="btn btn-primary btn-sm mx-3" data-toggle="dropdown">Table Style</button>
                      
                                        <div
                                            class="dropdown-menu dropdown-menu-animated dropdown-menu-right position-absolute pos-top">
                                            <button class="dropdown-item active" data-action="toggle"
                                                data-class="table-bordered" data-target="#dt-basic-example"> Bordered
                                                Table </button>
                                            <button class="dropdown-item" data-action="toggle" data-class="table-sm"
                                                data-target="#dt-basic-example"> Smaller Table </button>
                                            <button class="dropdown-item" data-action="toggle" data-class="table-dark"
                                                data-target="#dt-basic-example"> Table Dark </button>
                                            <button class="dropdown-item active" data-action="toggle"
                                                data-class="table-hover" data-target="#dt-basic-example"> Table Hover
                                            </button>
                                            <button class="dropdown-item active" data-action="toggle"
                                                data-class="table-stripe" data-target="#dt-basic-example"> Table
                                                Stripped </button>
                                            <div class="dropdown-divider m-0"></div>
                                            <div class="dropdown-multilevel dropdown-multilevel-left">
                                                <div class="dropdown-item">
                                                    tbody color
                                                </div>
                                                <div class="dropdown-menu no-transition-delay">
                                                    <div class="js-tbody-colors dropdown-multilevel dropdown-multilevel-left d-flex flex-wrap"
                                                        style="width: 15.9rem; padding: 0.5rem">
                                                        <a href="javascript:void(0);" data-bg="bg-primary-100"
                                                            class="btn d-inline-block bg-primary-100 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-primary-200"
                                                            class="btn d-inline-block bg-primary-200 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-primary-300"
                                                            class="btn d-inline-block bg-primary-300 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-primary-400"
                                                            class="btn d-inline-block bg-primary-400 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-primary-500"
                                                            class="btn d-inline-block bg-primary-500 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-primary-600"
                                                            class="btn d-inline-block bg-primary-600 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-primary-700"
                                                            class="btn d-inline-block bg-primary-700 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-primary-800"
                                                            class="btn d-inline-block bg-primary-800 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-primary-900"
                                                            class="btn d-inline-block bg-primary-900 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-success-100"
                                                            class="btn d-inline-block bg-success-100 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-success-200"
                                                            class="btn d-inline-block bg-success-200 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-success-300"
                                                            class="btn d-inline-block bg-success-300 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-success-400"
                                                            class="btn d-inline-block bg-success-400 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-success-500"
                                                            class="btn d-inline-block bg-success-500 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-success-600"
                                                            class="btn d-inline-block bg-success-600 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-success-700"
                                                            class="btn d-inline-block bg-success-700 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-success-800"
                                                            class="btn d-inline-block bg-success-800 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-success-900"
                                                            class="btn d-inline-block bg-success-900 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-info-100"
                                                            class="btn d-inline-block bg-info-100 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-info-200"
                                                            class="btn d-inline-block bg-info-200 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-info-300"
                                                            class="btn d-inline-block bg-info-300 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-info-400"
                                                            class="btn d-inline-block bg-info-400 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-info-500"
                                                            class="btn d-inline-block bg-info-500 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-info-600"
                                                            class="btn d-inline-block bg-info-600 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-info-700"
                                                            class="btn d-inline-block bg-info-700 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-info-800"
                                                            class="btn d-inline-block bg-info-800 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-info-900"
                                                            class="btn d-inline-block bg-info-900 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-danger-100"
                                                            class="btn d-inline-block bg-danger-100 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-danger-200"
                                                            class="btn d-inline-block bg-danger-200 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-danger-300"
                                                            class="btn d-inline-block bg-danger-300 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-danger-400"
                                                            class="btn d-inline-block bg-danger-400 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-danger-500"
                                                            class="btn d-inline-block bg-danger-500 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-danger-600"
                                                            class="btn d-inline-block bg-danger-600 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-danger-700"
                                                            class="btn d-inline-block bg-danger-700 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-danger-800"
                                                            class="btn d-inline-block bg-danger-800 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-danger-900"
                                                            class="btn d-inline-block bg-danger-900 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-warning-100"
                                                            class="btn d-inline-block bg-warning-100 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-warning-200"
                                                            class="btn d-inline-block bg-warning-200 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-warning-300"
                                                            class="btn d-inline-block bg-warning-300 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-warning-400"
                                                            class="btn d-inline-block bg-warning-400 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-warning-500"
                                                            class="btn d-inline-block bg-warning-500 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-warning-600"
                                                            class="btn d-inline-block bg-warning-600 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-warning-700"
                                                            class="btn d-inline-block bg-warning-700 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-warning-800"
                                                            class="btn d-inline-block bg-warning-800 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-warning-900"
                                                            class="btn d-inline-block bg-warning-900 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-fusion-100"
                                                            class="btn d-inline-block bg-fusion-100 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-fusion-200"
                                                            class="btn d-inline-block bg-fusion-200 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-fusion-300"
                                                            class="btn d-inline-block bg-fusion-300 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-fusion-400"
                                                            class="btn d-inline-block bg-fusion-400 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-fusion-500"
                                                            class="btn d-inline-block bg-fusion-500 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-fusion-600"
                                                            class="btn d-inline-block bg-fusion-600 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-fusion-700"
                                                            class="btn d-inline-block bg-fusion-700 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-fusion-800"
                                                            class="btn d-inline-block bg-fusion-800 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-fusion-900"
                                                            class="btn d-inline-block bg-fusion-900 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg=""
                                                            class="btn d-inline-block bg-white border width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="dropdown-multilevel dropdown-multilevel-left">
                                                <div class="dropdown-item">
                                                    thead color
                                                </div>
                                                <div class="dropdown-menu no-transition-delay">
                                                    <div class="js-thead-colors dropdown-multilevel dropdown-multilevel-left d-flex flex-wrap"
                                                        style="width: 15.9rem; padding: 0.5rem">
                                                        <a href="javascript:void(0);" data-bg="bg-primary-100"
                                                            class="btn d-inline-block bg-primary-100 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-primary-200"
                                                            class="btn d-inline-block bg-primary-200 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-primary-300"
                                                            class="btn d-inline-block bg-primary-300 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-primary-400"
                                                            class="btn d-inline-block bg-primary-400 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-primary-500"
                                                            class="btn d-inline-block bg-primary-500 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-primary-600"
                                                            class="btn d-inline-block bg-primary-600 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-primary-700"
                                                            class="btn d-inline-block bg-primary-700 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-primary-800"
                                                            class="btn d-inline-block bg-primary-800 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-primary-900"
                                                            class="btn d-inline-block bg-primary-900 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-success-100"
                                                            class="btn d-inline-block bg-success-100 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-success-200"
                                                            class="btn d-inline-block bg-success-200 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-success-300"
                                                            class="btn d-inline-block bg-success-300 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-success-400"
                                                            class="btn d-inline-block bg-success-400 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-success-500"
                                                            class="btn d-inline-block bg-success-500 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-success-600"
                                                            class="btn d-inline-block bg-success-600 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-success-700"
                                                            class="btn d-inline-block bg-success-700 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-success-800"
                                                            class="btn d-inline-block bg-success-800 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-success-900"
                                                            class="btn d-inline-block bg-success-900 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-info-100"
                                                            class="btn d-inline-block bg-info-100 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-info-200"
                                                            class="btn d-inline-block bg-info-200 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-info-300"
                                                            class="btn d-inline-block bg-info-300 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-info-400"
                                                            class="btn d-inline-block bg-info-400 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-info-500"
                                                            class="btn d-inline-block bg-info-500 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-info-600"
                                                            class="btn d-inline-block bg-info-600 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-info-700"
                                                            class="btn d-inline-block bg-info-700 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-info-800"
                                                            class="btn d-inline-block bg-info-800 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-info-900"
                                                            class="btn d-inline-block bg-info-900 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-danger-100"
                                                            class="btn d-inline-block bg-danger-100 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-danger-200"
                                                            class="btn d-inline-block bg-danger-200 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-danger-300"
                                                            class="btn d-inline-block bg-danger-300 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-danger-400"
                                                            class="btn d-inline-block bg-danger-400 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-danger-500"
                                                            class="btn d-inline-block bg-danger-500 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-danger-600"
                                                            class="btn d-inline-block bg-danger-600 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-danger-700"
                                                            class="btn d-inline-block bg-danger-700 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-danger-800"
                                                            class="btn d-inline-block bg-danger-800 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-danger-900"
                                                            class="btn d-inline-block bg-danger-900 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-warning-100"
                                                            class="btn d-inline-block bg-warning-100 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-warning-200"
                                                            class="btn d-inline-block bg-warning-200 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-warning-300"
                                                            class="btn d-inline-block bg-warning-300 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-warning-400"
                                                            class="btn d-inline-block bg-warning-400 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-warning-500"
                                                            class="btn d-inline-block bg-warning-500 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-warning-600"
                                                            class="btn d-inline-block bg-warning-600 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-warning-700"
                                                            class="btn d-inline-block bg-warning-700 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-warning-800"
                                                            class="btn d-inline-block bg-warning-800 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-warning-900"
                                                            class="btn d-inline-block bg-warning-900 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-fusion-100"
                                                            class="btn d-inline-block bg-fusion-100 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-fusion-200"
                                                            class="btn d-inline-block bg-fusion-200 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-fusion-300"
                                                            class="btn d-inline-block bg-fusion-300 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-fusion-400"
                                                            class="btn d-inline-block bg-fusion-400 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-fusion-500"
                                                            class="btn d-inline-block bg-fusion-500 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-fusion-600"
                                                            class="btn d-inline-block bg-fusion-600 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-fusion-700"
                                                            class="btn d-inline-block bg-fusion-700 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-fusion-800"
                                                            class="btn d-inline-block bg-fusion-800 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg="bg-fusion-900"
                                                            class="btn d-inline-block bg-fusion-900 width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                        <a href="javascript:void(0);" data-bg=""
                                                            class="btn d-inline-block bg-white border width-2 height-2 p-0 rounded-0"
                                                            style="margin:1px"></a>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                </div>
                                <div class="panel-container show">
                                   <span id="ex"> <?php echo $__env->make('admin.layouts.messages', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?></span>      
                                    <div class="panel-content">
                                        <!-- datatable start -->
                                        <div id="mobile-overflow">
                                        <table id="dt-basic-example"
                                            class="table table-bordered table-hover table-striped w-100 mobile-width">
                                            <thead class="bg-highlight">
                                                <tr>
                                                    <th><?php echo e(trans('admin.Code')); ?></th>
                                                    <th><?php echo e(trans('admin.Date')); ?></th>
                                                    <th><?php echo e(trans('admin.Weight')); ?></th>
                                                    <th><?php echo e(trans('admin.Number')); ?></th>
                                                    <th><?php echo e(trans('admin.Goods_Price')); ?></th>
                                                    <th><?php echo e(trans('admin.Shipping_Price')); ?></th>
                                                    <th><?php echo e(trans('admin.Total')); ?></th>
                                                    <th><?php echo e(trans('admin.Breakable')); ?></th>
                                                    <th><?php echo e(trans('admin.Notes')); ?></th>
                                                    <th><?php echo e(trans('admin.Coin')); ?></th>
                                                    <th><?php echo e(trans('admin.Cost_Center')); ?></th>
                                                    <th><?php echo e(trans('admin.Draw')); ?></th>
                                                    <th><?php echo e(trans('admin.Status')); ?></th>
                                                    <th><?php echo e(trans('admin.Type')); ?></th>
                                                    <th><?php echo e(trans('admin.Delegate')); ?>  (<?php echo e(trans('admin.Phone')); ?>)</th>
                                                    <th><?php echo e(trans('admin.Vendor')); ?> (<?php echo e(trans('admin.Phone')); ?>)</th>
                                                    <th><?php echo e(trans('admin.Client')); ?>  (<?php echo e(trans('admin.Phone')); ?>)</th>
                                                    <th><?php echo e(trans('admin.Client_Address')); ?></th>
                                                    <th><?php echo e(trans('admin.Able_to_Open')); ?></th>
                                                    <th><?php echo e(trans('admin.Paid')); ?></th>
                                                    <th><?php echo e(trans('admin.Ship_Sort')); ?></th>
                                                    <th><?php echo e(trans('admin.Requests')); ?></th>
                                                    <th><?php echo e(trans('admin.Actions')); ?></th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                            <?php $__currentLoopData = $items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>   
                                                <?php if($item->Cancel == 1): ?>
                                                <tr style="color: white; background: darkred">
                                                <?php else: ?>
                                                <tr>
                                                <?php endif; ?>    
                                                    <td><?php echo e($item->Code); ?></td>
                                                    <td><?php echo e($item->Date); ?></td>
                                                    <td><?php echo e($item->Weight); ?></td>
                                                    <td><?php echo e($item->Number); ?></td>
                                                    <td><?php echo e($item->Goods_Price); ?></td>
                                                    <td><?php echo e($item->Shipping_Price); ?></td>
                                                    <td><?php echo e($item->Total); ?></td>
                                                    <td>
                                                <?php if($item->Breakable == 1): ?>
                                                   <?php echo e(trans('admin.Yes')); ?>     
                                                <?php else: ?>
                                                    <?php echo e(trans('admin.No')); ?>

                                                <?php endif; ?>        
                                                    </td>
                                                    <td><?php echo e($item->Note); ?></td>
                                                    <td>
                                                    
                                              <?php echo e(app()->getLocale() == 'ar' ?$item->Coin()->first()->Arabic_Name :$item->Coin()->first()->English_Name); ?>            
                                                    
                                                    </td>
                                                    <td>
                                                    <?php if(!empty($item->Cost_Center)): ?>    
                                                  <?php echo e(app()->getLocale() == 'ar' ?$item->Cost_Center()->first()->Arabic_Name :$item->Cost_Center()->first()->English_Name); ?>  
                                                    <?php endif; ?>
                                                    </td>
                                                    <td><?php echo e($item->Draw); ?></td>
                                                    <td>
                                                    
                                         <?php echo e(app()->getLocale() == 'ar' ?$item->Status()->first()->Arabic_Name :$item->Status()->first()->English_Name); ?>                  
                                                    </td>
                                                    <td>
                                                    
                                      <?php echo e(app()->getLocale() == 'ar' ?$item->Type()->first()->Arabic_Name :$item->Type()->first()->English_Name); ?>                   
                                                    </td>
                                                    <td>
                                          
                                                        
                                                     <?php echo e(app()->getLocale() == 'ar' ?$item->Delegate()->first()->Name :$item->Delegate()->first()->NameEn); ?>    
                                                        (<?php echo e($item->Delegate()->first()->Phone); ?>)
                                                    </td>
                                                    <td>
                                                        
                                     
                                        <?php  $Vend=Vendors::where('Account',$item->Vendor)->first(); ?>                
                                                    <?php if(!empty($item->Vendor)): ?>    
                                                
                                                        
                                              <?php echo e(app()->getLocale() == 'ar' ?$item->Vendor()->first()->Name :$item->Vendor()->first()->NameEn); ?>                
                                                        (<?php echo e($Vend->Phone); ?>)
                                                    <?php endif; ?>
                                                    </td>
                                       <?php  $Cust=Customers::where('Account',$item->Client)->first(); ?>                
                                                    <td>
                                                     
                                                        
                                           <?php echo e(app()->getLocale() == 'ar' ?$item->Client()->first()->Name :$item->Client()->first()->NameEn); ?>                     
                                                        (<?php echo e($Cust->Phone); ?>)
                                                    
                                                    </td>

                                                    <td>
               <button type="button" class="btn btn-default" data-toggle="modal" data-target="#Addressses<?php echo e($item->id); ?>">
                                        <?php echo e(trans('admin.Client_Address')); ?>                
                                                        </button>
                                                    </td>
                                                    
                                                              <td>
                                                <?php if($item->Open == 1): ?>
                                                   <?php echo e(trans('admin.Yes')); ?>     
                                                <?php else: ?>
                                                    <?php echo e(trans('admin.No')); ?>

                                                <?php endif; ?>        
                                                    </td>    
                                                    
                                                    <td>
                                                    <?php echo e($item->Paid); ?>

                                                    </td>
                                                    
                                                    <td>
                                                <?php if($item->Ship_Sort == 1): ?>
                                                   <?php echo e(trans('admin.Backup')); ?>     
                                                <?php else: ?>
                                                    <?php echo e(trans('admin.DeropOff')); ?>

                                                <?php endif; ?>        
                                                    </td>  
                                                   
                                                    
                                              <td>
                                            <?php if($item->Ship_Sort == 1): ?>                                                                                         
               <button type="button" class="btn btn-default" data-toggle="modal" data-target="#Requests<?php echo e($item->id); ?>">
                                        <?php echo e(trans('admin.Requests')); ?>                
                                                        </button>
                                                                            <?php endif; ?>             
                                                    </td>
                                        
                                                    <td class="text-center">

                                                           
                                             <?php if($item->Cancel == 0): ?>           
                                                <?php if($item->Cli != 1): ?>        
                                                <?php if($item->Vend != 1): ?>     
                                                        
                                   
                                                        <button type="button" class="btn btn-default" data-toggle="modal" data-target="#default-example-modal-center<?php echo e($item->id); ?>"><i class="fal fa-trash"></i></button>
                                           
                     
                                                        <button type="button" class="btn btn-default" data-toggle="modal" data-target="#default-example-modal-lg-edit<?php echo e($item->id); ?>"><i class="fal fa-edit"></i></button>
                                                
                                                        
                                                  <?php endif; ?>
                                                  <?php endif; ?>
                                              
                                                        
                                         <?php if($item->Ship_Sort == 1): ?>                        
                                 <?php if($item->Request_Done == 1): ?>                                 
                   <button type="button" class="btn btn-default" data-toggle="modal" data-target="#Collection<?php echo e($item->id); ?>"><i class="fal fa-arrow-left"></i></button>
                           
                                                        
                                    <?php endif; ?>                    
                                    <?php endif; ?>    
                                                        
                                                        
                                                        
                                       <?php if($item->Cli == 1 and $item->Sure != 1): ?>          
           <button type="button" class="btn btn-default" data-toggle="modal" data-target="#Sure<?php echo e($item->id); ?>"><i class="fal fa-check"></i></button>
                                        <?php endif; ?>      
                                              
                                    <?php else: ?>                    
                                      
                                                        
                   <button type="button" class="btn btn-default" data-toggle="modal" data-target="#Cancel<?php echo e($item->id); ?>"><i class="fal fa-times"></i></button>                                         
                                                        
                       
     <?php if($item->Vendor_Shipping == 0): ?>
     <?php if($item->Cancel_Not_Pay == 1): ?>
          <button type="button" class="btn btn-default" data-toggle="modal" data-target="#User<?php echo e($item->id); ?>"><i class="fal fa-user"></i></button>   
       <?php endif; ?>                                          
       <?php endif; ?>                                          
                                                        
                                        <?php endif; ?>                
                                                        
                                                    </td>
                                                </tr>
                                             <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            </tbody>
                                            <tfoot>
                                                <tr>
                                                       <th><?php echo e(trans('admin.Code')); ?></th>
                                                    <th><?php echo e(trans('admin.Date')); ?></th>
                                                    <th><?php echo e(trans('admin.Weight')); ?></th>
                                                    <th><?php echo e(trans('admin.Number')); ?></th>
                                                    <th><?php echo e(trans('admin.Goods_Price')); ?></th>
                                                    <th><?php echo e(trans('admin.Shipping_Price')); ?></th>
                                                    <th><?php echo e(trans('admin.Total')); ?></th>
                                                    <th><?php echo e(trans('admin.Breakable')); ?></th>
                                                    <th><?php echo e(trans('admin.Notes')); ?></th>
                                                    <th><?php echo e(trans('admin.Coin')); ?></th>
                                                    <th><?php echo e(trans('admin.Cost_Center')); ?></th>
                                                    <th><?php echo e(trans('admin.Draw')); ?></th>
                                                    <th><?php echo e(trans('admin.Status')); ?></th>
                                                    <th><?php echo e(trans('admin.Type')); ?></th>
                                                    <th><?php echo e(trans('admin.Delegate')); ?> (<?php echo e(trans('admin.Phone')); ?>)</th>
                                                    <th><?php echo e(trans('admin.Vendor')); ?> (<?php echo e(trans('admin.Phone')); ?>)</th>
                                                    <th><?php echo e(trans('admin.Client')); ?> (<?php echo e(trans('admin.Phone')); ?>)</th>
                                                    <th><?php echo e(trans('admin.Client_Address')); ?></th>
                                                    <th><?php echo e(trans('admin.Able_to_Open')); ?></th>
                                                    <th><?php echo e(trans('admin.Paid')); ?></th>
                                                    <th><?php echo e(trans('admin.Ship_Sort')); ?></th>
                                                    <th><?php echo e(trans('admin.Requests')); ?></th>
                                                    <th><?php echo e(trans('admin.Actions')); ?></th>
                                                </tr>
                                            </tfoot>
                                        </table>
                                        </div>
                                         <?php echo e($items->Links()); ?>

                                        <!-- datatable end -->
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- Modal Add-->
            <div class="modal fade" id="default-example-modal-lg" tabindex="-1" role="dialog" aria-hidden="true">
                        <div class="modal-dialog modal-lg" role="document">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <h5 class="modal-title"><?php echo e(trans('admin.AddNew')); ?>  </h5>
                           
                                    <button type="button" class="btn btn-default" data-toggle="modal" data-target="#NewClient"><?php echo e(trans('admin.AddNewClient')); ?></button>    
                                  
                                       <button type="button" class="btn btn-default" data-toggle="modal" data-target="#NewVend"><?php echo e(trans('admin.AddNewVendor')); ?></button>  
                                    
                                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                        <span aria-hidden="true"><i class="fal fa-times"></i></span>
                                    </button>
                                </div>
                                <div class="modal-body">
                                    <form action="<?php echo e(url('AddShippingOrder')); ?>" method="post">
                                        <?php echo csrf_field(); ?>

                                              <?php echo view('honeypot::honeypotFormFields'); ?>
                                        <div class="form-row">
                                        <div class="form-group col-lg-4">
                                            <label class="form-label" for="simpleinput"><?php echo e(trans('admin.Code')); ?> </label>
                                            <input type="text" value="<?php echo e($Code); ?>" class="form-control " disabled>
                                            <input type="hidden" name="Code" value="<?php echo e($Code); ?>" class="form-control">
                                        </div>
                                        <div class="form-group col-lg-4">
                                            <label class="form-label" for="simpleinput"><?php echo e(trans('admin.Date')); ?></label>
                           <input type="date" name="Date" value="<?php echo e(date('Y-m-d')); ?>" class="form-control" required>
                                        </div>
                                            
                                    <div class="form-group col-lg-4">
                                            <label class="form-label" for=""><?php echo e(trans('admin.Ship_Sort')); ?></label>
                                            <select class="select2 form-control w-100" id="Ship_Sort" onchange="Appear()" name="Ship_Sort" required>
                                          <option value=""> <?php echo e(trans('admin.Ship_Sort')); ?></option>
                                          <option value="1"> <?php echo e(trans('admin.Backup')); ?></option>
                                          <option value="2"> <?php echo e(trans('admin.DeropOff')); ?></option>
                                            </select>
                                        </div>
                                            
                                            <div class="form-group col-lg-4">
                                            <label class="form-label" for=""><?php echo e(trans('admin.Delegate')); ?></label>
                                            <select class="select2 form-control w-100" name="Delegate" required>
                                          <option value=""> <?php echo e(trans('admin.Delegate')); ?></option>
                                            <?php $__currentLoopData = $Employess; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $emp): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>    
                                                <option value="<?php echo e($emp->id); ?>" <?php if($Def->Delegate == $emp->id): ?> selected <?php endif; ?>>
                                      
                                         <?php echo e(app()->getLocale() == 'ar' ?$emp->Name :$emp->NameEn); ?>            
                                                </option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
                                            </select>
                                        </div>
                                            
                                            <div class="form-group col-lg-4" id="vend" style="display: none">
                                            <label class="form-label" for=""><?php echo e(trans('admin.Vendor')); ?></label>
                                            <select class="select2 form-control w-100 vendor" name="Vendor">
                     
                                            </select>
                                        </div>
                                            
                                             <div class="form-group col-lg-4" id="requests" style="display: none">
                                            <label class="form-label" for=""><?php echo e(trans('admin.Requests')); ?></label>
                             <textarea class="form-control" name="Requests">
                                 
                                                 </textarea>
                                        </div>
                                            
                                            <div class="form-group col-lg-4">
                                            <label class="form-label" for=""><?php echo e(trans('admin.Client')); ?></label>
    <select class="select2 form-control w-100 client" id="Client" name="Client" onchange="shipping()" required>
                                 
         
                                            </select>
                                        </div>
                                            
                                         <div class="form-group col-lg-4">
                                            <label class="form-label" for=""><?php echo e(trans('admin.Client_Address')); ?></label>
               <select class="select2 form-control w-100" id="Address" name="Adderss" onchange="shipping()"  required>
                      
                              
                                            </select>
                                        </div>

                               <div class="form-group col-lg-4">
                                            <label class="form-label" for=""><?php echo e(trans('admin.ShippingType')); ?></label>
                                            <select class="select2 form-control w-100" name="Type" required>
                                          <option value=""> <?php echo e(trans('admin.ShippingType')); ?></option>
                                            <?php $__currentLoopData = $Types; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $typ): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>    
                      <option value="<?php echo e($typ->id); ?>" <?php if($Def->Type == $typ->id): ?> selected <?php endif; ?>>
                     
                          
         <?php echo e(app()->getLocale() == 'ar' ?$typ->Arabic_Name :$typ->English_Name); ?>   
                                                
                                                </option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
                                            </select>
                                        </div>    
    
                                         <div class="form-group col-lg-4">
                                            <label class="form-label" for="simpleinput"><?php echo e(trans('admin.Weight')); ?></label>
        <input type="number" step="any" name="Weight" id="Weight" onkeyup="shipping()" value="<?php echo e(old('Weight')); ?>" class="form-control" onclick="shipping()">
                                        </div>  
                                            
                                               <div class="form-group col-lg-4">
                                            <label class="form-label" for="simpleinput"><?php echo e(trans('admin.Number')); ?></label>
                 <input type="number" step="any" name="Number" value="<?php echo e(old('Number')); ?>" class="form-control" required>
                                        </div>  
                                            
                                                               <div class="form-group col-lg-4">
                                            <label class="form-label" for="simpleinput"><?php echo e(trans('admin.Goods_Price')); ?></label>
                 <input type="number" step="any" name="Goods_Price" id="Goods_Price" value="<?php echo e(old('Goods_Price')); ?>" class="form-control" onkeyup="shipping()" onclick="shipping()" required>
                                        </div>  
                                        
                                                   <div class="form-group col-lg-4">
                  <label class="form-label" for="simpleinput"><?php echo e(trans('admin.Shipping_Price')); ?></label>
                 <input type="number" step="any" name="Shipping_Price" id="Shipping_Price" value="<?php echo e(old('Shipping_Price')); ?>" class="form-control" onkeyup="LOOL()" onclick="LOOL()" required>
                                        </div>    
                                            
                                     <div class="form-group col-lg-4">
                                            <label class="form-label" for="simpleinput"><?php echo e(trans('admin.Total')); ?></label>
                 <input type="number" step="any"  id="Total" value="<?php echo e(old('Total')); ?>" class="form-control" disabled>
                 <input type="hidden" step="any" name="Total" id="TotalHide">
                                        </div>       
                                            
                                 <div class="form-group col-lg-4">
                                            <label class="form-label" for=""><?php echo e(trans('admin.ShippingStatus')); ?></label>
                                            <select class="select2 form-control w-100" name="Status" required>
                                          <option value=""> <?php echo e(trans('admin.ShippingStatus')); ?></option>
                                            <?php $__currentLoopData = $Status; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $st): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>    
                                                <option value="<?php echo e($st->id); ?>" <?php if($Def->Status == $st->id): ?> selected <?php endif; ?>>
                                            
                                      <?php echo e(app()->getLocale() == 'ar' ?$st->Arabic_Name :$st->English_Name); ?>                 
                                                </option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
                                            </select>
                                        </div>    
                             <div class="form-group col-lg-4">
                                            <label class="form-label" for=""><?php echo e(trans('admin.Breakable')); ?></label>
                                            <select class="select2 form-control w-100" name="Breakable" required>
                                          <option value=""> <?php echo e(trans('admin.Breakable')); ?></option>
                                          <option value="1" <?php if($Def->Breakable == 1): ?> selected <?php endif; ?>> <?php echo e(trans('admin.Yes')); ?></option>
                                          <option value="0" <?php if($Def->Breakable == 0): ?> selected <?php endif; ?>> <?php echo e(trans('admin.No')); ?></option>
                                            </select>
                                        </div>  
                                    
                                       <div class="form-group col-lg-4">
                                            <label class="form-label" for=""><?php echo e(trans('admin.Able_to_Open')); ?></label>
                                            <select class="select2 form-control w-100" name="Open" required>
                                          <option value=""> <?php echo e(trans('admin.Able_to_Open')); ?></option>
                                          <option value="1"> <?php echo e(trans('admin.Yes')); ?></option>
                                          <option value="0"> <?php echo e(trans('admin.No')); ?></option>
                                            </select>
                                        </div>          
                                            
                                               <div class="form-group col-lg-4">
                                            <label class="form-label" for=""><?php echo e(trans('admin.Coin')); ?></label>
                                            <select class="select2 form-control w-100" name="Coin" required>
                                                 <option value=""> <?php echo e(trans('admin.Coin')); ?></option>
                                            <?php $__currentLoopData = $Coins; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $coin): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>    
                                                <option value="<?php echo e($coin->id); ?>" <?php if($Def->Coin == $coin->id): ?> selected <?php endif; ?>>
            
                                        <?php echo e(app()->getLocale() == 'ar' ?$coin->Arabic_Name :$coin->English_Name); ?>                    
                                                </option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
                                            </select>
                                        </div>
                                        <div class="form-group col-lg-4">
                                            <label class="form-label" for="simpleinput"><?php echo e(trans('admin.Draw')); ?></label>
                                            <input type="text" name="Draw" value="1" class="form-control" required>
                                        </div>
                                    <div class="form-group col-lg-4">
                                            <label class="form-label" for=""> <?php echo e(trans('admin.Cost_Center')); ?> </label>
                                            <select class="select2 form-control w-100" name="Cost_Center">
                                            <option value=""> <?php echo e(trans('admin.Cost_Center')); ?></option>
                                            <?php $__currentLoopData = $CostCenters; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cost): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>    
                                                <option value="<?php echo e($cost->id); ?>">
                                            
                                           <?php echo e(app()->getLocale() == 'ar' ?$cost->Arabic_Name :$cost->English_Name); ?>                 
                                                </option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
                                            </select>
                                        </div>
                                            
                                     <div class="form-group col-lg-4">
                                            <label class="form-label" for="simpleinput"><?php echo e(trans('admin.Notes')); ?></label>
                 <input type="text" name="Note" value="<?php echo e(old('Note')); ?>" class="form-control">
                                        </div>                    

                                        </div>
                                <div class="modal-footer">
                  <button type="button" class="btn btn-secondary" data-dismiss="modal"><?php echo e(trans('admin.Close')); ?></button>
                                    <button type="submit" class="btn btn-primary"> <?php echo e(trans('admin.Save')); ?></button>
                                </div>        
                                    </form>
                                </div>
                            
                            </div>
                        </div>
                    </div>
                 
                        <!-- Modal New Client -->
            <div class="modal fade" id="NewClient" tabindex="-1" role="dialog" aria-hidden="true">
                        <div class="modal-dialog modal-dialog-centered modal-xl" role="document">              
                            <div class="modal-content">
                                <div class="modal-header">
                                   
                                    <h4 class="modal-body row">
                          
                      
                                        <div class="form-group col-md-3">
                                 <label class="form-label" for="simpleinput">   <?php echo e(trans('admin.Code')); ?></label>
                                 <input type="text" id="CODE"  value="<?php echo e($CodeUser); ?>" disabled class="form-control">
                             
                                                                    </div>
                                                   <div class="form-group col-md-3">
                <label class="form-label" for="simpleinput"> <?php echo e(trans('admin.Arabic_Name')); ?>  </label><span class="strick">*</span>
                        <input type="text" id="Name" value="<?php echo e(old('Name')); ?>" class="form-control">
                                                                    </div>                
                                        
                                        <div class="form-group col-md-3">
                <label class="form-label" for="simpleinput"> <?php echo e(trans('admin.English_Name')); ?>  </label><span class="strick">*</span>
                        <input type="text" id="NameEn" value="<?php echo e(old('NameEn')); ?>" class="form-control">
                                                                    </div>   
                                                     
                                                     <div class="form-group col-md-3">
                <label class="form-label" for="simpleinput"> <?php echo e(trans('admin.Phone')); ?>  </label><span class="strick">*</span>
                        <input type="number" id="Phone" value="<?php echo e(old('Phone')); ?>" class="form-control">
                                                                    </div>   
                                                               <div class="form-group col-md-3">
                <label class="form-label" for="">   <?php echo e(trans('admin.Price_Level')); ?> </label><span class="strick">*</span>
                             <select class="select2 form-control w-100" id="PriceLevel">
                                    <option value="1"> <?php echo e(trans('admin.Level1')); ?> </option>
                                    <option value="2"> <?php echo e(trans('admin.Level2')); ?> </option>
                                    <option value="3"> <?php echo e(trans('admin.Level3')); ?> </option>
                                                              
                                                                        </select>
                                                                    </div>
                                        
                                     <div class="row">
                  <div class="form-group col-md-3">
                    <label><?php echo e(trans('admin.Address_Name')); ?></label> 
                    <input type="text" id="NaameAddress" class="form-control">                       
                                    </div>                         
                  <div class="form-group col-md-3">
                      <label><?php echo e(trans('admin.Governrate')); ?></label> 
                      <select class="select2 form-control w-100" id="Governrate" >
                     <option value=""><?php echo e(trans('admin.Governrate')); ?></option>
                     <?php $__currentLoopData = $Governrates; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $gov): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                     <option value="<?php echo e($gov->id); ?>">
                   
<?php echo e(app()->getLocale() == 'ar' ?$gov->Arabic_Name :$gov->English_Name); ?>

                     </option>
                     <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>      
                  </select>                     
                    </div>
                  <div class="form-group col-md-3">
                      <label><?php echo e(trans('admin.City')); ?></label> 
                           <select class="select2 form-control w-100" id="City" >
                                
                                       </select>                 
                                        </div>                         
                  <div class="form-group col-md-3"><label><?php echo e(trans('admin.Place')); ?></label> 
                           <select class="select2 form-control w-100" id="Place" >
                                
                                       </select>                     
                                         </div>                         
                  <div class="form-group col-md-3"><label><?php echo e(trans('admin.Street')); ?></label> 
                            <input type="text" id="Street" class="form-control">               
                                         </div>                         
                  <div class="form-group col-md-3"><label><?php echo e(trans('admin.Buliding')); ?></label> 
                                <input type="text" id="Buliding" class="form-control">           
                                         </div>                         
                  <div class="form-group col-md-3"><label><?php echo e(trans('admin.Floor')); ?></label> 
                             <input type="text" id="Floor" class="form-control">             
                                         </div>                         
                  <div class="form-group col-md-3"><label><?php echo e(trans('admin.Flat')); ?></label> 
                               <input type="text" id="Flat" class="form-control">          
                                         </div>                         
                  <div class="form-group col-md-3"><label><?php echo e(trans('admin.Special_Mark')); ?></label> 
                            <input type="text" id="Special_Mark" class="form-control">             
                                         </div>
                  <div class="form-group col-md-3"><label><?php echo e(trans('admin.Location')); ?></label> 
                           <input type="text" id="Location" class="form-control">               
                                         </div>                         
                  <div class="form-group col-md-3"><label><?php echo e(trans('admin.Address_Details')); ?></label> 
                   <input type="text"  id="Address_Details" class="form-control">          
                                         </div>                   
   
                                        </div>   
                                        
        
                                    </h4>
                                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                        <span aria-hidden="true"><i class="fal fa-times"></i></span>
                                    </button>
                                </div>
                                
                                <div class="modal-footer">
                  <button type="button" class="btn btn-secondary" data-dismiss="modal"> <?php echo e(trans('admin.No')); ?></button>
                   <button type="button" onclick="NewClients()"  class="btn btn-primary"> <?php echo e(trans('admin.AddNew')); ?></button>
                                </div>
                                
                            </div>
                        </div>
                    </div>

       
                                                                        <!-- Modal New Vendor -->
            <div class="modal fade" id="NewVend" tabindex="-1" role="dialog" aria-hidden="true">
                        <div class="modal-dialog modal-dialog-centered modal-xl" role="document">              
                            <div class="modal-content">
                                <div class="modal-header">
                                   
                                    <h4 class="modal-body row">
                          
                      
                                        <div class="form-group col-md-3">
                                 <label class="form-label" for="simpleinput">   <?php echo e(trans('admin.Code')); ?></label>
                                 <input type="text" id="CODEe"  value="<?php echo e($CodeUser); ?>" disabled class="form-control">
                             
                                                                    </div>
                                                   <div class="form-group col-md-3">
                <label class="form-label" for="simpleinput"> <?php echo e(trans('admin.Arabic_Name')); ?>  </label><span class="strick">*</span>
                        <input type="text" id="Namee" value="<?php echo e(old('Name')); ?>" class="form-control">
                                                                    </div>   
                                        
                                                    <div class="form-group col-md-3">
                <label class="form-label" for="simpleinput"> <?php echo e(trans('admin.English_Name')); ?>  </label><span class="strick">*</span>
                        <input type="text" id="NameEn" value="<?php echo e(old('NameEn')); ?>" class="form-control">
                                                                    </div>                   
                      
                                                               <div class="form-group col-md-3">
                <label class="form-label" for="">   <?php echo e(trans('admin.Price_Level')); ?> </label><span class="strick">*</span>
                             <select class="select2 form-control w-100" id="PriceLevele">
                                    <option value="1"> <?php echo e(trans('admin.Level1')); ?> </option>
                                    <option value="2"> <?php echo e(trans('admin.Level2')); ?> </option>
                                    <option value="3"> <?php echo e(trans('admin.Level3')); ?> </option>
                                                              
                                                                        </select>
                                                                    </div>
        
                                    </h4>
                                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                        <span aria-hidden="true"><i class="fal fa-times"></i></span>
                                    </button>
                                </div>
                                
                                <div class="modal-footer">
                  <button type="button" class="btn btn-secondary" data-dismiss="modal"> <?php echo e(trans('admin.No')); ?></button>
                   <button type="button" onclick="NewVendor()"  class="btn btn-primary"> <?php echo e(trans('admin.AddNew')); ?></button>
                                </div>
                                
                            </div>
                        </div>
                    </div>
                         
                                   
                                             
         <?php $__currentLoopData = $items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>  
        <!-- Modal Edit-->
<div class="modal fade" id="default-example-modal-lg-edit<?php echo e($item->id); ?>" tabindex="-1" role="dialog" aria-hidden="true">
                        <div class="modal-dialog modal-lg" role="document">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <h5 class="modal-title"><?php echo e(trans('admin.Edit')); ?>  </h5>
                                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                        <span aria-hidden="true"><i class="fal fa-times"></i></span>
                                    </button>
                                </div>
                                <div class="modal-body">
                                    <form action="<?php echo e(url('EditShippingOrder/'.$item->id)); ?>" method="post">
                                        <?php echo csrf_field(); ?>

                                              <?php echo view('honeypot::honeypotFormFields'); ?>
                                        <div class="form-row">
                                        <div class="form-group col-lg-4">
                                            <label class="form-label" for="simpleinput"><?php echo e(trans('admin.Code')); ?> </label>
                                            <input type="text" value="<?php echo e($item->Code); ?>" class="form-control " disabled>
                                            <input type="hidden" name="Code" value="<?php echo e($item->Code); ?>" class="form-control">
                                        </div>
                                        <div class="form-group col-lg-4">
                                            <label class="form-label" for="simpleinput"><?php echo e(trans('admin.Date')); ?></label>
                           <input type="date" name="Date" value="<?php echo e($item->Date); ?>" class="form-control" required>
                                        </div>
                                    
                                            <div class="form-group col-lg-4">
                                            <label class="form-label" for=""><?php echo e(trans('admin.Ship_Sort')); ?></label>
                <select class="select2 form-control w-100" id="Ship_Sort<?php echo e($item->id); ?>" onchange="Appeaar(<?php echo e($item->id); ?>)" name="Ship_Sort" required>
                                          <option value=""> <?php echo e(trans('admin.Ship_Sort')); ?></option>
                                 <option value="1" <?php if($item->Ship_Sort == 1): ?> selected <?php endif; ?> > <?php echo e(trans('admin.Backup')); ?></option>
                                 <option value="2" <?php if($item->Ship_Sort == 2): ?> selected <?php endif; ?> > <?php echo e(trans('admin.DeropOff')); ?></option>
                                            </select>
                                        </div>
                                            
                                            <div class="form-group col-lg-4">
                                            <label class="form-label" for=""><?php echo e(trans('admin.Delegate')); ?></label>
                                            <select class="select2 form-control w-100" name="Delegate" required>
                                          <option value=""> <?php echo e(trans('admin.Delegate')); ?></option>
                                            <?php $__currentLoopData = $Employess; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $emp): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>    
            <option value="<?php echo e($emp->id); ?>" <?php if($item->Delegate == $emp->id): ?> selected <?php endif; ?>>
                                  
                 <?php echo e(app()->getLocale() == 'ar' ?$emp->Name :$emp->NameEn); ?>

                                                </option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
                                            </select>
                                        </div>
                                            
                                            
                                <div class="form-group col-lg-4" id="vend<?php echo e($item->id); ?>" <?php if($item->Ship_Sort == 2): ?> style="display: block" <?php else: ?> style="display: none"   <?php endif; ?> >
                                            <label class="form-label" for=""><?php echo e(trans('admin.Vendor')); ?></label>
                                            <select class="select2 form-control w-100 vendor" name="Vendor">
                         <?php if(!empty($item->Vendor)): ?>
                    <option value="<?php echo e($item->Vendor); ?>">
                                                
                                           <?php echo e(app()->getLocale() == 'ar' ?$item->Vendor()->first()->Name :$item->Vendor()->first()->NameEn); ?>            
                                                </option>
                        <?php endif; ?>                            
                                            </select>
                                        </div>
                                            
                          <div class="form-group col-lg-4" id="requests<?php echo e($item->id); ?>" <?php if($item->Ship_Sort == 1): ?> style="display: block" <?php else: ?> style="display: none"   <?php endif; ?>>
                                            <label class="form-label" for=""><?php echo e(trans('admin.Requests')); ?></label>
                             <textarea class="form-control" name="Requests">
                                 <?php echo e($item->Requests); ?>

                                                 </textarea>
                                        </div>
                                                

                                               <div class="form-group col-lg-4">
                                            <label class="form-label" for=""><?php echo e(trans('admin.Client')); ?></label>
    <select class="select2 form-control w-100 cliX client" id="Client<?php echo e($item->id); ?>" name="Client" onchange="shippingg(<?php echo e($item->id); ?>)" required>
                                          <?php if(!empty($item->Client)): ?>
        
        
                    <option value="<?php echo e($item->Client); ?>">
        
                 <?php echo e(app()->getLocale() == 'ar' ?$item->Client()->first()->Name :$item->Client()->first()->NameEn); ?> 
        </option>
                        <?php endif; ?>     
         
                                            </select>
                                        </div>

                                                           <div class="form-group col-lg-4">
                                            <label class="form-label" for=""><?php echo e(trans('admin.Client_Address')); ?></label>
               <select class="select2 form-control w-100 address" id="Address<?php echo e($item->id); ?>" name="Adderss" onchange="shippingg(<?php echo e($item->id); ?>)"  required>
                      
                                         <?php if(!empty($item->Adderss)): ?>
                <?php   $address=Addressses::find($item->Adderss);   ?>   
                   <?php if(!empty($address)): ?>
                    <option value="<?php echo e($address->id); ?>"><?php echo e($address->Address_Name); ?></option>
                 <?php endif; ?>  
                        <?php endif; ?>                 
                                            </select>
                                        </div>                
                                            
                               <div class="form-group col-lg-4">
                                            <label class="form-label" for=""><?php echo e(trans('admin.ShippingType')); ?></label>
                                            <select class="select2 form-control w-100" name="Type" required>
                                          <option value=""> <?php echo e(trans('admin.ShippingType')); ?></option>
                                            <?php $__currentLoopData = $Types; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $typ): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>    
             <option value="<?php echo e($typ->id); ?>" <?php if($item->Type == $typ->id): ?> selected <?php endif; ?>>
                                          
                    <?php echo e(app()->getLocale() == 'ar' ?$typ->Arabic_Name :$typ->English_Name); ?> 
                                                </option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
                                            </select>
                                        </div>    
    
                                         <div class="form-group col-lg-4">
                                            <label class="form-label" for="simpleinput"><?php echo e(trans('admin.Weight')); ?></label>
        <input type="number" step="any" name="Weight" id="Weight<?php echo e($item->id); ?>" onkeyup="shippingg(<?php echo e($item->id); ?>)" value="<?php echo e($item->Weight); ?>" class="form-control" onclick="shippingg(<?php echo e($item->id); ?>)" >
                                        </div>  
                                            
                                               <div class="form-group col-lg-4">
                                            <label class="form-label" for="simpleinput"><?php echo e(trans('admin.Number')); ?></label>
                 <input type="number" step="any" name="Number" value="<?php echo e($item->Number); ?>" class="form-control" required>
                                        </div>  
                                            
                                                               <div class="form-group col-lg-4">
                                            <label class="form-label" for="simpleinput"><?php echo e(trans('admin.Goods_Price')); ?></label>
                 <input type="number" step="any" name="Goods_Price" id="Goods_Price<?php echo e($item->id); ?>" value="<?php echo e($item->Goods_Price); ?>" class="form-control" onkeyup="shippingg(<?php echo e($item->id); ?>)" onclick="shippingg(<?php echo e($item->id); ?>)" required>
                                        </div>  
                                        
                                                   <div class="form-group col-lg-4">
                  <label class="form-label" for="simpleinput"><?php echo e(trans('admin.Shipping_Price')); ?></label>
                 <input type="number" step="any" name="Shipping_Price" id="Shipping_Price<?php echo e($item->id); ?>" value="<?php echo e($item->Shipping_Price); ?>" class="form-control" onkeyup="LOoooOL(<?php echo e($item->id); ?>)" onclick="LOoooOL(<?php echo e($item->id); ?>)" required>
                                        </div>    
                                            
                                     <div class="form-group col-lg-4">
                                            <label class="form-label" for="simpleinput"><?php echo e(trans('admin.Total')); ?></label>
                 <input type="number" step="any"  id="Total<?php echo e($item->id); ?>" value="<?php echo e($item->Total); ?>" class="form-control" disabled>
                 <input type="hidden" step="any" name="Total" value="<?php echo e($item->Total); ?>" id="TotalHide<?php echo e($item->id); ?>">
                                        </div>       
                                            
                                 <div class="form-group col-lg-4">
                                            <label class="form-label" for=""><?php echo e(trans('admin.ShippingStatus')); ?></label>
                                            <select class="select2 form-control w-100" name="Status" required>
                                          <option value=""> <?php echo e(trans('admin.ShippingStatus')); ?></option>
                                            <?php $__currentLoopData = $Status; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $st): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>    
                       <option value="<?php echo e($st->id); ?>" <?php if($item->Status == $st->id): ?> selected <?php endif; ?>>
                                                <?php echo e($st->Arabic_Name); ?>

                                                </option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
                                            </select>
                                        </div>    
                             <div class="form-group col-lg-4">
                                            <label class="form-label" for=""><?php echo e(trans('admin.Breakable')); ?></label>
                                            <select class="select2 form-control w-100" name="Breakable" required>
                                          <option value=""> <?php echo e(trans('admin.Breakable')); ?></option>
            <option value="1" <?php if($item->Breakable == 1): ?> selected <?php endif; ?>> <?php echo e(trans('admin.Yes')); ?></option>
            <option value="0" <?php if($item->Breakable == 0): ?> selected <?php endif; ?>> <?php echo e(trans('admin.No')); ?></option>
                                            </select>
                                        </div>   
                                            
                      <div class="form-group col-lg-4">
                                            <label class="form-label" for=""><?php echo e(trans('admin.Able_to_Open')); ?></label>
                                            <select class="select2 form-control w-100" name="Open" required>
                                          <option value=""> <?php echo e(trans('admin.Able_to_Open')); ?></option>
                    <option value="1" <?php if($item->Open == 1): ?> selected <?php endif; ?>> <?php echo e(trans('admin.Yes')); ?></option>
                    <option value="0" <?php if($item->Open == 0): ?> selected <?php endif; ?>> <?php echo e(trans('admin.No')); ?></option>
                                            </select>
                                        </div>                                      
                                               <div class="form-group col-lg-4">
                                            <label class="form-label" for=""><?php echo e(trans('admin.Coin')); ?></label>
                                            <select class="select2 form-control w-100" name="Coin" required>
                                                 <option value=""> <?php echo e(trans('admin.Coin')); ?></option>
                                            <?php $__currentLoopData = $Coins; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $coin): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>    
                      <option value="<?php echo e($coin->id); ?>" <?php if($item->Coin == $coin->id): ?> selected <?php endif; ?>>
                                     
                              <?php echo e(app()->getLocale() == 'ar' ?$coin->Arabic_Name :$coin->English_Name); ?> 
                                                </option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
                                            </select>
                                        </div>
                                        <div class="form-group col-lg-4">
                                            <label class="form-label" for="simpleinput"><?php echo e(trans('admin.Draw')); ?></label>
                           <input type="text" name="Draw" value="<?php echo e($item->Draw); ?>" class="form-control" required>
                                        </div>
                                    <div class="form-group col-lg-4">
                                            <label class="form-label" for=""> <?php echo e(trans('admin.Cost_Center')); ?> </label>
                                            <select class="select2 form-control w-100" name="Cost_Center">
                                            <option value=""> <?php echo e(trans('admin.Cost_Center')); ?></option>
                                            <?php $__currentLoopData = $CostCenters; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cost): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>    
                           <option value="<?php echo e($cost->id); ?>" <?php if($item->Cost_Center == $cost->id): ?> selected <?php endif; ?>>
                                    
                                  <?php echo e(app()->getLocale() == 'ar' ?$cost->Arabic_Name :$cost->English_Name); ?> 
                                                </option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
                                            </select>
                                        </div>
                                            
                                     <div class="form-group col-lg-4">
                                            <label class="form-label" for="simpleinput"><?php echo e(trans('admin.Notes')); ?></label>
                 <input type="text" name="Note" value="<?php echo e($item->Note); ?>" class="form-control">
                                        </div>                    

                                        </div>
                                    <div class="modal-footer">
                                    <button type="button" class="btn btn-secondary" data-dismiss="modal"><?php echo e(trans('admin.Close')); ?></button>
                                    <button type="submit" class="btn btn-primary"> <?php echo e(trans('admin.Save')); ?></button>
                                </div>        
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
        
                      <!-- Modal Delete -->
     <div class="modal fade" id="default-example-modal-center<?php echo e($item->id); ?>" tabindex="-1" role="dialog" aria-hidden="true">
                        <div class="modal-dialog modal-dialog-centered" role="document">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <h4 class="modal-title">
                                          <?php echo e(trans('admin.RUSWDT')); ?> <strong><?php echo e($item->Code); ?></strong>
                                    </h4>
                                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                        <span aria-hidden="true"><i class="fal fa-times"></i></span>
                                    </button>
                                </div>
                                
                                <div class="modal-footer">
                  <button type="button" class="btn btn-secondary" data-dismiss="modal"> <?php echo e(trans('admin.No')); ?></button>
                   <a href="<?php echo e(url('DeleteShippingOrder/'.$item->id)); ?>"  class="btn btn-primary"> <?php echo e(trans('admin.Yes')); ?></a>
                                </div>
                            </div>
                        </div>
                    </div>
        

      
        
                             <!-- Modal Requests -->
     <div class="modal fade" id="Requests<?php echo e($item->id); ?>" tabindex="-1" role="dialog" aria-hidden="true">
                        <div class="modal-dialog modal-dialog-centered" role="document">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <h4 class="modal-title">
                            <?php echo e($item->Requests); ?>

                                    </h4>
                                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                        <span aria-hidden="true"><i class="fal fa-times"></i></span>
                                    </button>
                                </div>
                                
                                <div class="modal-footer">
                  <button type="button" class="btn btn-secondary" data-dismiss="modal"> <?php echo e(trans('admin.No')); ?></button>
                                </div>
                            </div>
                        </div>
                    </div>

                                     <!-- Modal Sure -->
     <div class="modal fade" id="Sure<?php echo e($item->id); ?>" tabindex="-1" role="dialog" aria-hidden="true">
                        <div class="modal-dialog modal-dialog-centered" role="document">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <h4 class="modal-title">
                                        
                                <div class="row">
         
                                    
                            <div class="col-md-12">
                                <label><?php echo e(trans('admin.Shipping')); ?></label>  
                            <h6><?php echo e($item->Shipping_Price); ?></h6>    
                                    </div>  
                                   <div class="col-md-12">
                                <label><?php echo e(trans('admin.Shipping_Company')); ?></label>  
                            <h6><?php echo e($item->Shipping_Price - $item->Shipping_Delegate); ?></h6>    
                                    </div>  
                                    
                                           <div class="col-md-12">
                                <label><?php echo e(trans('admin.Shipping_Delegate')); ?></label>  
                            <h6><?php echo e($item->Shipping_Delegate); ?></h6>    
                                    </div>  
                            <div class="col-md-12">
                                <label><?php echo e(trans('admin.Total')); ?></label>  
                            <h6><?php echo e($item->Total); ?></h6>    
                                    </div>  
                              <div class="col-md-12">
                                <label><?php echo e(trans('admin.Paid')); ?></label>  
                            <h6><?php echo e($item->Paid); ?></h6>    
                                    </div>    
                                          <div class="col-md-12">
                                <label><?php echo e(trans('admin.Residual')); ?></label>  
                            <h6><?php echo e($item->Residual); ?></h6>    
                                    </div>  
                                      <div class="col-md-12">
                                <label><?php echo e(trans('admin.Notes')); ?></label>  
                            <h6><?php echo e($item->Emp_Note); ?></h6>    
                                    </div>        
                                        
                                        </div>        
                            
                                    </h4>
                                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                        <span aria-hidden="true"><i class="fal fa-times"></i></span>
                                    </button>
                                </div>
                                
                                <div class="modal-footer">
                  <button type="button" class="btn btn-secondary" data-dismiss="modal"> <?php echo e(trans('admin.Close')); ?></button>
              <a href="<?php echo e(url('SureCustomerCollection/'.$item->id)); ?>" class="btn btn-default"><i class="fal fa-check"></i></a>                    
                                </div>
                            </div>
                        </div>
                    </div>

        
                             <!-- Modal Cancel -->
     <div class="modal fade" id="Cancel<?php echo e($item->id); ?>" tabindex="-1" role="dialog" aria-hidden="true">
                        <div class="modal-dialog modal-dialog-centered" role="document">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <h4 class="modal-title">
                    <div class="row">
                    <div class="col-md-4">
                <label><?php echo e(trans('admin.Cancel_Type')); ?></label>     
                 <?php if($item->Cancel_Pay == 1): ?>
                      <?php echo e(trans('admin.Shipping_Paid')); ?>

                <?php elseif($item->Cancel_Not_Pay == 1): ?>
                     <?php echo e(trans('admin.Shipping_Not_Paid')); ?>   
                <?php endif; ?>        
                        
                            </div>
                            <div class="col-md-4">  
              <label><?php echo e(trans('admin.Paid')); ?></label>    
              <?php echo e($item->Paid); ?>

                                        
                            </div>    
                        
                        <div class="col-md-4"> 
            <label><?php echo e(trans('admin.Notes')); ?></label>                     
                        <?php echo e($item->Cancel_Note); ?>                    
                            </div>    
                            </div>       
                                    </h4>
                                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                        <span aria-hidden="true"><i class="fal fa-times"></i></span>
                                    </button>
                                </div>
                                
                                <div class="modal-footer">
                  <button type="button" class="btn btn-secondary" data-dismiss="modal"> <?php echo e(trans('admin.Close')); ?></button>
                                </div>
                            </div>
                        </div>
                    </div>
        
                                <!-- Modal User -->
     <div class="modal fade" id="User<?php echo e($item->id); ?>" tabindex="-1" role="dialog" aria-hidden="true">
                        <div class="modal-dialog modal-dialog-centered" role="document">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <h4 class="modal-title">
                                           <?php echo e(trans('admin.Vendor_Collection')); ?>

                                    </h4>
                                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                        <span aria-hidden="true"><i class="fal fa-times"></i></span>
                                    </button>
                                </div>
                                 <div class="modal-body">
                                <form action="<?php echo e(url('VendorCollectShipping')); ?>" method="post">
                                     <?php echo csrf_field(); ?>

                                     <input type="hidden" name="ID" value="<?php echo e($item->id); ?>">                            
                             <input type="hidden" name="Vendor" value="<?php echo e($item->Vendor); ?>">            
                             <input type="hidden" name="ShipCompane" value="<?php echo e($item->Shipping_Price); ?>">            
                             <input type="hidden" name="ShipDelegate" value="<?php echo e($item->Shipping_Delegate); ?>">            
                                    <div class="row">   
                                         <?php if(!empty($item->Vendor)): ?>    
                                        <div class="col-md-3">   
                        <label><?php echo e(trans('admin.Vendor')); ?></label>              
            <input type="text" disabled class="form-control"   value="<?php echo e(app()->getLocale() == 'ar' ?$item->Vendor()->first()->Name :$item->Vendor()->first()->NameEn); ?>">   
                                        </div>     
                                    <?php endif; ?>    
                                        
                                          <div class="col-md-3">   
                        <label><?php echo e(trans('admin.Shipping')); ?></label>              
            <input type="text" disabled class="form-control"   value="<?php echo e($item->Shipping_Price); ?>">   
                                        </div> 
                                        
                                                <div class="col-md-3">   
                        <label><?php echo e(trans('admin.Shipping_Company')); ?></label>              
            <input type="text" disabled class="form-control"   value="<?php echo e($item->Shipping_Price - $item->Shipping_Delegate); ?>">   
                                        </div>                     
                                                <div class="col-md-3">   
                        <label><?php echo e(trans('admin.Shipping_Delegate')); ?></label>              
            <input type="text" disabled class="form-control"   value="<?php echo e($item->Shipping_Delegate); ?>">   
                                        </div>                     
                
                               <div class="form-group col-lg-12">
                                            <label class="form-label" for=""><?php echo e(trans('admin.Safe')); ?></label>
                                            <select class="select2 form-control w-100" name="Safe" required>
                                                 <option value=""> <?php echo e(trans('admin.Safe')); ?></option>
                                            <?php $__currentLoopData = $Safes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $safe): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>    
                                                <option value="<?php echo e($safe->id); ?>">
                                              <?php echo e(app()->getLocale() == 'ar' ?$safe->Name :$safe->NameEn); ?>

                                                </option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>    
                                            </select>
                                        </div>

                                    </div>
                        <div class="modal-footer">
                  <button type="button" class="btn btn-secondary" data-dismiss="modal"> <?php echo e(trans('admin.No')); ?></button>
                  <button type="submit" class="btn btn-secondary"> <?php echo e(trans('admin.Yes')); ?></button>

                                </div>
                                     </form>      
                                </div>
                            </div>
                        </div>
                    </div>
            
  
                                <!-- Modal Collection -->
     <div class="modal fade" id="Collection<?php echo e($item->id); ?>" tabindex="-1" role="dialog" aria-hidden="true">
                        <div class="modal-dialog modal-dialog-centered" role="document">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <h4 class="modal-title">
      <?php echo e(trans('admin.Client_Collection')); ?>

                                    </h4>
                                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                        <span aria-hidden="true"><i class="fal fa-times"></i></span>
                                    </button>
                                </div>
                                 <div class="modal-body">
                                <form action="<?php echo e(url('CustomerCollectionRequests')); ?>" method="post">
                                     <?php echo csrf_field(); ?>

                                     <input type="hidden" name="ID" value="<?php echo e($item->id); ?>">
                                    <input type="hidden" name="Safe" value="<?php echo e($item->Safe); ?>">            
                                    <div class="row">   
 
                                        
                                       <div class="col-md-4">   
                        <label><?php echo e(trans('admin.Notes')); ?></label>              
            <input type="text" disabled class="form-control" id="Total"  value="<?php echo e($item->Emp_Note); ?>">    
                                        </div>                       
                                  <div class="col-md-4">   
                        <label><?php echo e(trans('admin.Total')); ?></label>              
            <input type="text" disabled class="form-control" id="Total"  value="<?php echo e($item->Total); ?>">    
                                        </div> 
                                        
                                                 <div class="col-md-4">     
                         <label><?php echo e(trans('admin.Shipping')); ?></label>                                
            <input type="number" step="any" name="Shipping_Price" class="form-control" value="<?php echo e($item->Shipping_Price); ?>" required >   
                                        </div>  
   
                                    </div>
                        <div class="modal-footer">
                  <button type="button" class="btn btn-secondary" data-dismiss="modal"> <?php echo e(trans('admin.No')); ?></button>
                  <button type="submit" class="btn btn-secondary"> <?php echo e(trans('admin.Yes')); ?></button>

                                </div>
                                     </form>      
                                </div>
                            </div>
                        </div>
                    </div>
        
        
              
        
                             <!-- Modal Requests -->
     <div class="modal fade" id="Addressses<?php echo e($item->id); ?>" tabindex="-1" role="dialog" aria-hidden="true">
                        <div class="modal-dialog modal-dialog-centered" role="document">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <h4 class="modal-title">
                                                     <?php if(!empty($item->Adderss)): ?>
                <?php   $address=Addressses::find($item->Adderss);   ?>   
   <?php if(!empty($address)): ?>
<?php echo e($address->Address_Name); ?>

       <?php endif; ?>
             <?php endif; ?>      
                                    </h4>
                                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                        <span aria-hidden="true"><i class="fal fa-times"></i></span>
                                    </button>
                                </div>
                                
                                <div class="modal-footer">
                  <button type="button" class="btn btn-secondary" data-dismiss="modal"> <?php echo e(trans('admin.No')); ?></button>
                                </div>
                            </div>
                        </div>
                    </div>

        
            
        
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </main>
<?php if(app()->getLocale() == 'ar' ): ?> 
<input type="hidden" id="LANG" value="ar">
<?php else: ?>
<input type="hidden" id="LANG" value="en">
<?php endif; ?>
<?php $__env->stopSection(); ?>

<?php $__env->startPush('js'); ?>
      <link rel="stylesheet" media="screen, print" href="<?php echo e(asset('Admin/css/datagrid/datatables/datatables.bundle.css')); ?>">
    <link rel="stylesheet" media="screen, print" href="<?php echo e(asset('Admin/css/formplugins/summernote/summernote.css')); ?>">
    <link rel="stylesheet" media="screen, print" href="<?php echo e(asset('Admin/css/formplugins/select2/select2.bundle.css')); ?>">

    <script src="<?php echo e(asset('Admin/js/datagrid/datatables/datatables.bundle.js')); ?>"></script>
    <script src="<?php echo e(asset('Admin/js/datagrid/datatables/datatables.export.js')); ?>"></script>
    <script src="<?php echo e(asset('Admin/js/formplugins/summernote/summernote.js')); ?>"></script>
    <script src="<?php echo e(asset('Admin/js/formplugins/select2/select2.bundle.js')); ?>"></script>
    

    <!-- Search Selecet -->
<script>
    $(document).ready(function () {
        $(function () {
            $(".select2").select2();

            $(".select2-placeholder-multiple").select2({
                placeholder: "Select State",
            });
            $(".js-hide-search").select2({
                minimumResultsForSearch: 1 / 0,
            });
            $(".js-max-length").select2({
                maximumSelectionLength: 2,
                placeholder: "Select maximum 2 items",
            });
            $(".select2-placeholder").select2({
                placeholder: "Select a state",
                allowClear: true,
            });

            $(".js-select2-icons").select2({
                minimumResultsForSearch: 1 / 0,
                templateResult: icon,
                templateSelection: icon,
                escapeMarkup: function (elm) {
                    return elm;
                },
            });

            function icon(elm) {
                elm.element;
                return elm.id ? "<i class='" + $(elm.element).data("icon") + " mr-2'></i>" + elm.text : elm.text;
            }

    
            
              $(".client").select2({
                placeholder: "select...",
                ajax: {
                    type: "GET",
                    dataType: "json",
                    url: "AllClientsFilter",
                    processResults: function (data) {
                        return {
                            results: $.map(data, function (obj, index) {

                                return { id: index, text: obj };
                            }),
                        };

                        console.log(data);
                    },
                    data: function (params) {
                        var query = {
                            search: params.term,
                        };
                        if (params.term == "*") query.items = [];
                        return { json: JSON.stringify(query) };
                    },
                },
            });

            $(".client").on("select2:select", function (e) {
                console.log("select done", e.params.data);
            });
            
            
             
              $(".vendor").select2({
                placeholder: "select...",
                ajax: {
                    type: "GET",
                    dataType: "json",
                    url: "AllVendors",
                    processResults: function (data) {
                        return {
                            results: $.map(data, function (obj, index) {

                                return { id: index, text: obj };
                            }),
                        };

                        console.log(data);
                    },
                    data: function (params) {
                        var query = {
                            search: params.term,
                        };
                        if (params.term == "*") query.items = [];
                        return { json: JSON.stringify(query) };
                    },
                },
            });

            $(".vendor").on("select2:select", function (e) {
                console.log("select done", e.params.data);
            });
            
            
            
            
        });
    });
</script>


    <!-- Result-->
<script>
 function shipping(){ 
     
     var Client = $('#Client').val();
     var Weight = $('#Weight').val();
     var Goods =  $('#Goods_Price').val(); 
     var address =  $('#Address').val(); 

        $.ajax({
                             url: 'ClientPlaceFilter/'+Client+'/'+Weight+'/'+address,
                             type:"GET",
                             dataType:"json",
                             beforeSend: function(){
                                 $('#loader').css("visibility", "visible");
                             },
   
                             success:function(data) {
                                 $.each(data, function(key, value){
                                
                                var result = parseFloat(data.vvalue) + parseFloat(Goods) ;     

                                     $('#Shipping_Price').val(parseFloat(data.vvalue));
 
                                 $('#Total').val(parseFloat(result));
                                 $('#TotalHide').val(parseFloat(result));
                                 }); 
                                }
                                 });
                     }
  
function LOOL(){ 

     var Goods =  $('#Goods_Price').val(); 
     var Shipping_Price =  $('#Shipping_Price').val(); 


            var result = parseFloat(Goods) + parseFloat(Shipping_Price) ; 
                                $('#Total').val(parseFloat(result));
                                 $('#TotalHide').val(parseFloat(result));
    
    
                     }    
    
</script>

    <!-- Result Edit-->
<script>
 function shippingg(r){ 
     
     var Client = $('#Client'+r).val();
     var Weight = $('#Weight'+r).val();
     var Goods =  $('#Goods_Price'+r).val(); 
     var address =  $('#Address'+r).val(); 
        $.ajax({
                             url: 'ClientPlaceFilter/'+Client+'/'+Weight+'/'+address,
                             type:"GET",
                             dataType:"json",
                             beforeSend: function(){
                                 $('#loader').css("visibility", "visible");
                             },
   
                             success:function(data) {
                                 $.each(data, function(key, value){
                                
                                var result = parseFloat(data.vvalue) + parseFloat(Goods) ;     

                                     $('#Shipping_Price'+r).val(parseFloat(data.vvalue));
 
                                 $('#Total'+r).val(parseFloat(result));
                                 $('#TotalHide'+r).val(parseFloat(result));
                                 }); 
                                }
                                 });
                     }
   function LOoooOL(r){ 
     

     var Goods =  $('#Goods_Price'+r).val(); 
     var Shipping_Price =  $('#Shipping_Price'+r).val(); 


            var result = parseFloat(Goods) + parseFloat(Shipping_Price) ; 
                                $('#Total'+r).val(parseFloat(result));
                                 $('#TotalHide'+r).val(parseFloat(result));
    
    
                     }    
    
</script>

<script>
    function Appear(){
        
        var Ship_Sort=$('#Ship_Sort').val();
        
        if(parseFloat(Ship_Sort) == 1){
            
               document.getElementById('vend').style.display='none';
            document.getElementById('requests').style.display='block';
            
        }else if(parseFloat(Ship_Sort) == 2){
          
            document.getElementById('vend').style.display='block';
            document.getElementById('requests').style.display='none';
            
        }
        
    }

 function Appeaar(r){
        
        var Ship_Sort=$('#Ship_Sort'+r).val();
        
        if(parseFloat(Ship_Sort) == 1){
            
               document.getElementById('vend'+r).style.display='none';
            document.getElementById('requests'+r).style.display='block';
            
        }else if(parseFloat(Ship_Sort) == 2){
          
            document.getElementById('vend'+r).style.display='block';
            document.getElementById('requests'+r).style.display='none';
            
        }
        
    }
    
</script>

<!-- Filter Address -->
<script>
 $(document).ready(function() {
   
       $('#Client').on('change', function(){
           var countryId = $(this).val();
           if(countryId) {
               $.ajax({
                   url: 'AddressFilter/'+countryId,
                   type:"GET",
                   dataType:"json",
                   beforeSend: function(){
                       $('#loader').css("visibility", "visible");
                   },
   
                   success:function(data) {
   
                       $('#Address').empty();
   
                       $.each(data, function(key, value){
   
             $('#Address').append('<option value="'+ key +'">' + value + '</option>');
     
                       });
                   },
                   complete: function(){
                       $('#loader').css("visibility", "hidden");
                   }
               });
           } else {
   
               $('select[name="states"]').empty();
           }
   
       });
   
   });
    
$(document).ready(function() {
   
           var countryId = $('#Client').val();
           if(countryId) {
               $.ajax({
                   url: 'AddressFilter/'+countryId,
                   type:"GET",
                   dataType:"json",
                   beforeSend: function(){
                       $('#loader').css("visibility", "visible");
                   },
   
                   success:function(data) {
   
                       $('#Address').empty();
   
                       $.each(data, function(key, value){
   
             $('#Address').append('<option value="'+ key +'">' + value + '</option>');
     
                       });
                   },
                   complete: function(){
                       $('#loader').css("visibility", "hidden");
                   }
               });
           } else {
   
               $('select[name="states"]').empty();
           }

   
   });    
    
$(document).ready(function() {
   
       $('.cliX').on('change', function(){
           var countryId = $(this).val();
           if(countryId) {
               $.ajax({
                   url: 'AddressFilter/'+countryId,
                   type:"GET",
                   dataType:"json",
                   beforeSend: function(){
                       $('#loader').css("visibility", "visible");
                   },
   
                   success:function(data) {
   
                       $('.address').empty();
   
                       $.each(data, function(key, value){
   
             $('.address').append('<option value="'+ key +'">' + value + '</option>');
     
                       });
                   },
                   complete: function(){
                       $('#loader').css("visibility", "hidden");
                   }
               });
           } else {
   
               $('select[name="states"]').empty();
           }
   
       });
   
   });    

</script>


<!-- Add New Client -->
<script>
    function NewClients(){
        
    var co = $('#CODE').val();    
    var Name = $('#Name').val();  
    var PriceLevel = $('#PriceLevel').val();  
    var Phone = $('#Phone').val();  
        
    var NaameAddress = $('#NaameAddress').val();  
    var Governrate = $('#Governrate').val();  
    var City = $('#City').val();  
    var Place = $('#Place').val();  
    var Street = $('#Street').val();  
    var Buliding = $('#Buliding').val();  
    var Floor = $('#Floor').val();  
    var Flat = $('#Flat').val();  
    var Special_Mark = $('#Special_Mark').val();  
    var Location = $('#Location').val();  
    var Address_Details = $('#Address_Details').val();  
           var NameEn = $('#NameEn').val();  
   var LANG = $('#LANG').val();  
       if(NameEn == ''){
          
               NameEn = Name ;
          }    
          if(Name) {
                         $.ajax({
                             url: 'AddNewClientPOS/'+co+'/'+Name+'/'+PriceLevel+'/'+Phone,
                             type:"GET",
                             data:{
                               NaameAddress:NaameAddress,
                                Governrate:Governrate,
                                City:City,
                                Place:Place,
                                Street:Street,
                                Buliding:Buliding,
                                Floor:Floor,
                                Flat:Flat,
                                Special_Mark:Special_Mark,
                                Location:Location,
                                Address_Details:Address_Details,  
                                NameEn:NameEn  
                             },
                             dataType:"json",
                             beforeSend: function(){
                                 $('#loader').css("visibility", "visible");
                             },
   
                             success:function(data) {
                                 $.each(data, function(key, value){
                                     
                                            if(LANG == 'ar'){
                            alert('تم الاضافه بنجاح');
                       }else{
                           alert('Added Successfully'); 
                       }        
                                     
                                 });
                             },
                             complete: function(){
                                 $('#loader').css("visibility", "hidden");
                             }
                         });
                     }else{
                         
                         if(LANG == 'ar'){        
                       alert('حقل الاسم مطلوب'); 
                      }else{
                          
                       alert('Name Input is Required');        
                      }
                         
                     }
        
        
        
    }
</script>


<!-- Add New Vendor -->
<script>
    function NewVendor(){
        
    var co = $('#CODEe').val();    
    var Name = $('#Namee').val();  
    var PriceLevel = $('#PriceLevele').val();  
   var NameEn = $('#NameEn').val();  
   var LANG = $('#LANG').val();  
       if(NameEn == ''){
          
               NameEn = Name ;
          }    
        
          if(Name) {
                         $.ajax({
                             url: 'AddNewVendor/'+co+'/'+Name+'/'+PriceLevel,
                             type:"GET",
                             data:{
                                 
                                 NameEn:NameEn
                             }
                             dataType:"json",
                             beforeSend: function(){
                                 $('#loader').css("visibility", "visible");
                             },
   
                             success:function(data) {
                                 $.each(data, function(key, value){
                                     
                                                    
                             if(LANG == 'ar'){
                            alert('تم الاضافه بنجاح');
                       }else{
                           alert('Added Successfully'); 
                       }       
             
                    $('#Name').val('');                 
                                 });
                             },
                             complete: function(){
                                 $('#loader').css("visibility", "hidden");
                             }
                         });
                     }else{
                         
                               if(LANG == 'ar'){        
                       alert('حقل الاسم مطلوب'); 
                      }else{
                          
                       alert('Name Input is Required');        
                      }
                         
                     }
        
        
        
    }
</script>


<!-- Filter Governrate and City !-->
<script>
   $(document).ready(function() {
   
       $('#Governrate').on('change', function(){
           var countryId = $(this).val();
           if(countryId) {
               $.ajax({
                   url: 'GovernrateFilter/'+countryId,
                   type:"GET",
                   dataType:"json",
                   beforeSend: function(){
                       $('#loader').css("visibility", "visible");
                   },
   
                   success:function(data) {
   
                       $('#City').empty();
   
                       $.each(data, function(key, value){
   
             $('#City').append('<option value="'+ key +'">' + value + '</option>');
                     
      
                    var  CITY = $('#City').val();        
                           
                       $.ajax({
                   url: 'CityFilter/'+CITY,
                   type:"GET",
                   dataType:"json",
                   beforeSend: function(){
                       $('#loader').css("visibility", "visible");
                   },
   
                   success:function(data) {
   
                       $('#Place').empty();
   
                       $.each(data, function(key, value){
   
             $('#Place').append('<option value="'+ key +'">' + value + '</option>');
                            
           
  
                       });
                   },
                   complete: function(){
                       $('#loader').css("visibility", "hidden");
                   }
               });       
                           
                           
                           
                           
                           
                           
                       });
                   },
                   complete: function(){
                       $('#loader').css("visibility", "hidden");
                   }
               });
           } else {
   
               $('select[name="states"]').empty();
           }
   
       });
   
   });
    
   $(document).ready(function() {
   
   
           var countryId = $('#Governrate').val();
           if(countryId) {
               $.ajax({
                   url: 'GovernrateFilter/'+countryId,
                   type:"GET",
                   dataType:"json",
                   beforeSend: function(){
                       $('#loader').css("visibility", "visible");
                   },
   
                   success:function(data) {
   
                       $('#City').empty();
   
                       $.each(data, function(key, value){
   
             $('#City').append('<option value="'+ key +'">' + value + '</option>');
               
         
                       });
                   },
                   complete: function(){
                       $('#loader').css("visibility", "hidden");
                   }
               });
           } else {
   
               $('select[name="states"]').empty();
           }
   
   
   });    
</script>

<!-- Filter City and Places !-->
<script>
   $(document).ready(function() {
   
       $('#City').on('change', function(){
           var countryId = $(this).val();
           if(countryId) {
               $.ajax({
                   url: 'CityFilter/'+countryId,
                   type:"GET",
                   dataType:"json",
                   beforeSend: function(){
                       $('#loader').css("visibility", "visible");
                   },
   
                   success:function(data) {
   
                       $('#Place').empty();
   
                       $.each(data, function(key, value){
   
             $('#Place').append('<option value="'+ key +'">' + value + '</option>');
     
                       });
                   },
                   complete: function(){
                       $('#loader').css("visibility", "hidden");
                   }
               });
           } else {
   
               $('select[name="states"]').empty();
           }
   
       });
   
   });
    
    $(document).ready(function() {
   
           var countryId = $('#City').val();
           if(countryId) {
               $.ajax({
                   url: 'CityFilter/'+countryId,
                   type:"GET",
                   dataType:"json",
                   beforeSend: function(){
                       $('#loader').css("visibility", "visible");
                   },
   
                   success:function(data) {
   
                       $('#Place').empty();
   
                       $.each(data, function(key, value){
   
             $('#Place').append('<option value="'+ key +'">' + value + '</option>');
                           
                       });
                   },
                   complete: function(){
                       $('#loader').css("visibility", "hidden");
                   }
               });
           } else {
   
               $('select[name="states"]').empty();
           }
   
   
   
   });
</script>

<?php $__env->stopPush(); ?>


<?php echo $__env->make('admin.index', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Applications/MAMP/htdocs/laravel/ERP/resources/views/admin/Shipping/ShippingOrder.blade.php ENDPATH**/ ?>