
<?php $__env->startSection('content'); ?>
<?php
use App\Models\VendorAccountStatementColumn;
$colum=VendorAccountStatementColumn::orderBy('id','desc')->first();
?>
<title><?php echo e(trans('admin.VendorAccountStatement')); ?></title>
<style>
   .box{
   position: relative;
   padding:20px 10px;
   border: 1px solid #ccc;
   border-radius: 5px;
   margin-top:25px;
   }
   .box h3{
   position: absolute;
   background: white;
   top: -25px;
   padding: 5px;
   }
   .nav-item{
   width:50%;
   }
   .select-border , .select2-selection--single ,.select2-selection--multiple, input[type="checkbox"]{
   border: 2px solid #584576!important;
   font-size:15px;
   }
   /* The container */
   .container {
   display: block;
   position: relative;
   padding-right: 35px;
   margin-bottom: 12px;
   cursor: pointer;
   font-size: 13px;
   -webkit-user-select: none;
   -moz-user-select: none;
   -ms-user-select: none;
   user-select: none;
   }
   /* Hide the browser's default checkbox */
   .container input {
   position: absolute;
   opacity: 0;
   cursor: pointer;
   height: 0;
   width: 0;
   }
   /* Create a custom checkbox */
   .checkmark {
   position: absolute;
   top: 0;
   right: 0;
   height: 20px;
   width: 20px;
   border-radius: 3px;
   border: 2px solid #584576;
   transition:.5s;
   }
   /* On mouse-over, add a grey background color */
   .container:hover input ~ .checkmark {
   background-color: #ccc;
   transition:.5s;
   }
   /* When the checkbox is checked, add a blue background */
   .container input:checked ~ .checkmark {
   background-color: #584576;
   }
   /* Create the checkmark/indicator (hidden when not checked) */
   .checkmark:after {
   content: "";
   position: absolute;
   display: none;
   }
   /* Show the checkmark when checked */
   .container input:checked ~ .checkmark:after {
   display: block;
   }
   /* Style the checkmark/indicator */
   .container .checkmark:after {
   left: 5px;
   top: 1px;
   width: 7px;
   height: 12px;
   border: solid white;
   border-width: 0 3px 3px 0;
   -webkit-transform: rotate(45deg);
   -ms-transform: rotate(45deg);
   transform: rotate(45deg);
   }
</style>
<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.Reports')); ?></a></li>
      <li class="breadcrumb-item active"><?php echo e(trans('admin.VendorAccountStatement')); ?></li>
      <li class="position-absolute pos-top pos-right d-none d-sm-block"><span
         class="js-get-date"></span></li>
   </ol>
   <form action="<?php echo e(url('VendorAccountStatementFilter')); ?>" method="post" enctype="multipart/form-data">
       <?php echo csrf_field(); ?>
      <?php echo view('honeypot::honeypotFormFields'); ?>
      <div class="row">
         <div class="col-xl-12">
            <div  class="panel">
               <div class="panel-container show">
                  <div class="panel-content">
                     <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">
                           <ul class="nav nav-tabs" role="tablist">
                              <li class="nav-item" >
                                 <a class="nav-link active" data-toggle="tab" href="#tab_borders_icons-1" role="tab" style="background: #add8e680;"><i class="fal fa-home mr-1"></i>      <?php echo e(trans('admin.Filter')); ?></a>
                              </li>
                              <li class="nav-item">
                                 <a class="nav-link" data-toggle="tab" href="#tab_borders_icons-2" role="tab" style="background: #ffe4e1a6;"><i class="fal fa-user mr-1" ></i> <?php echo e(trans('admin.Columns')); ?></a>
                              </li>
                           </ul>
                           <div class="tab-content border border-top-0 p-3">
                              <div class="tab-pane fade show active" id="tab_borders_icons-1" role="tabpanel">
                                 <div class="row">
                                    <div class="col-lg-12">
                                       <div class="row">
                                          <div class="form-group col-md-4 col-12">
                                             <label class="form-label" for="simpleinput"><?php echo e(trans('admin.From')); ?></label><span class="strick">*</span>
                                             <input  type="date" value="<?php echo e(date('Y-m-d')); ?>" id="From" name="From" class="form-control  select-border" required>
                                          </div>
                                          <div class="form-group col-md-4 col-12">
                                             <label class="form-label" for="simpleinput"><?php echo e(trans('admin.To')); ?></label><span class="strick">*</span>
                                             <input  type="date" value="<?php echo e(date('Y-m-d')); ?>" id="To" name="To" class="form-control  select-border" required>
                                          </div>
                                    
                                       
                                          <div class="form-group col-md-4 col-12">
                                             <label class="form-label" for="">  <?php echo e(trans('admin.Account')); ?> (<?php echo e(trans('admin.Vendor')); ?>) </label>
                                         
                                             <select class="select2 form-control w-100 ; select-border"  id="Vendor" name="Vendor">
                                      
                                                   <?php $__currentLoopData = $Clients; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $client): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                  <option value="<?php echo e($client->id); ?>"> 
                                                      <?php echo e(app()->getLocale() == 'ar' ?$client->Name :$client->NameEn); ?> 
                                                 </option>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> 
                                             </select>
                                          </div>
                                          <div class="form-group col-md-4 col-12 no-print">
                                             <label class="form-label" for=""> <?php echo e(trans('admin.Payment_Method')); ?>  </label>
                                                <span style="color: red" id="select_all_paymethod"><i class="fal fa-sliders-h"></i></span>
                                              <span style="color: red" id="remove_all_paymethod"><i class="fal fa-trash"></i></span>
                                             <select class="select2 form-control w-100 ; select-border" multiple id="Payment_Method" name="Payment_Method[]">
                                             
                                                <option value="Cash"> <?php echo e(trans('admin.Cash')); ?></option>
                                                <option value="Later"> <?php echo e(trans('admin.Later')); ?></option>
                                                <option value="Check"> <?php echo e(trans('admin.Check')); ?></option>
                                                <option value="Installment"> <?php echo e(trans('admin.Installment')); ?></option>
                                                <option value="Cash_Visa"> <?php echo e(trans('admin.Cash_Visa')); ?></option>
                                                <option value="Cash_Collection"> <?php echo e(trans('admin.Cash_Collection')); ?></option>
                                                <option value="Delivery"> <?php echo e(trans('admin.Delivery')); ?></option>
                                                <option value="InstallmentCompanies"> <?php echo e(trans('admin.InstallmentCompanies')); ?></option>
                                           
                                             </select>
                                          </div>
                                          <div class="form-group col-md-4 col-12 no-print">
                                             <label class="form-label" for="">  <?php echo e(trans('admin.Type')); ?>    <span style="color: red" >*</span> </label>
                                                <span style="color: red" id="select_all_type"><i class="fal fa-sliders-h"></i></span>
                                              <span style="color: red" id="remove_all_type"><i class="fal fa-trash"></i></span>
                                             <select class="select2 form-control w-100 ; select-border" multiple id="Type" name="Type[]" required>
                                                <option value="1" selected> <?php echo e(trans('admin.Purchases')); ?></option>
                                                <option value="2"> <?php echo e(trans('admin.Recipt_Voucher')); ?></option>
                                                <option value="3"> <?php echo e(trans('admin.Payment_Voucher')); ?></option>
                                             </select>
                                          </div>
                                        
                                         
                                          <div class="form-group col-md-4 col-12 no-print">
                                             <label class="form-label" for="">   <?php echo e(trans('admin.Cost_Center')); ?> </label>
                                             <select class="select2 form-control w-100; select-border" id="Cost_Center" 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-md-4 col-12 no-print">
                                             <label class="form-label" for="">  <?php echo e(trans('admin.Coin')); ?> </label>
                                             <select class="select2 form-control w-100; select-border" id="Coin" name="Coin">
                                                <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 echo e(app()->getLocale() == 'ar' ?$coin->Arabic_Name :$coin->English_Name); ?> </option>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> 
                                             </select>
                                          </div>
                                        
                                       </div>
                                    </div>
                                   
                                 </div>
                              </div>
                              <div class="tab-pane fade" id="tab_borders_icons-2" role="tabpanel">
                                 <div class="row">
                                    <div class="col-md-6">
                                       <div class="box" style="background: #8000803b;">
                                          <h3> <?php echo e(trans('admin.ChoiceColumn')); ?>  </h3>
                                          <div class="row">
                                             <div class="col-md-4 demo">
                                                <label class="container"><?php echo e(trans('admin.Date')); ?>

                                                <input  type="checkbox" id="DateBill" name="DateDet" value="1" <?php if($colum->Date == 1): ?> checked class="FF che" <?php else: ?> class="FF Unche" <?php endif; ?> >
                                                <span class="checkmark"></span>
                                                </label>
                                                <label class="container">
                                               <?php echo e(trans('admin.Bill_Num')); ?>

                                                <input  type="checkbox" name="CodeDet" id="CodeBill" value="1" <?php if($colum->Code == 1): ?> checked class="FF che" <?php else: ?> class="FF Unche" <?php endif; ?> >
                                                <span class="checkmark"></span> 
                                                </label>
                                                <label class="container">  
                                               <?php echo e(trans('admin.Refrence_Number')); ?>

                                                <input  type="checkbox" name="Refrence_NumberDet" value="1" id="Refrence_NumberBill" <?php if($colum->Refrence_Number == 1): ?> checked class="FF che" <?php else: ?> class="FF Unche" <?php endif; ?> >
                                                <span class="checkmark"></span> 
                                                </label>
                                                 
                                                        <label class="container">  
                                               <?php echo e(trans('admin.Vendor')); ?>

                                             <input  type="checkbox" name="ClientDet" value="1" id="ClientBill" <?php if($colum->Vendor == 1): ?> checked class="FF che" <?php else: ?> class="FF Unche" <?php endif; ?> >
                                                <span class="checkmark"></span> 
                                                </label>
                                                 
                                                <label class="container">
                                                    <?php echo e(trans('admin.Branch')); ?>

                                                <input type="checkbox" name="BranchDet" id="BranchBill" value="1" <?php if($colum->Branch == 1): ?> checked class="FF che" <?php else: ?> class="FF Unche" <?php endif; ?> >
                                                <span class="checkmark"></span> 
                                                </label>
                                                <label class="container">
                                                  <?php echo e(trans('admin.Store')); ?>

                                                <input  type="checkbox" name="StoreDet" id="StoreBill" value="1" <?php if($colum->Store == 1): ?> checked class="FF che" <?php else: ?> class="FF Unche" <?php endif; ?> >
                                                <span class="checkmark"></span> 
                                                </label>
                                                <label class="container"> 
                                                 <?php echo e(trans('admin.Payment_Method')); ?>

                                                <input  type="checkbox" name="Payment_MethodDet" value="1" id="Payment_MethodBill" <?php if($colum->Payment_Method == 1): ?> checked class="FF che" <?php else: ?> class="FF Unche" <?php endif; ?> >
                                                <span class="checkmark"></span> 
                                                </label>
                                                <label class="container">
                                                <?php echo e(trans('admin.Safe')); ?>

                                                <input  type="checkbox" name="SafeDet" id="SafeBill" value="1" <?php if($colum->Safe == 1): ?> checked class="FF che" <?php else: ?> class="FF Unche" <?php endif; ?> >
                                                <span class="checkmark"></span> 
                                                </label>
                                                <label class="container">
                                              <?php echo e(trans('admin.Type')); ?>

                                                <input  type="checkbox" name="TypeDet" id="TypeBill" value="1" <?php if($colum->Type == 1): ?> checked class="FF che" <?php else: ?> class="FF Unche" <?php endif; ?> >
                                                <span class="checkmark"></span> 
                                                </label>
                                                <label class="container">
                                                  <?php echo e(trans('admin.Shipping')); ?>

                                                <input  type="checkbox" name="ShippingDet" id="Shipping" value="1" <?php if($colum->Shipping == 1): ?> checked class="FF che" <?php else: ?> class="FF Unche" <?php endif; ?> >
                                                <span class="checkmark"></span> 
                                                </label>
                                             </div>
                                             <div class="col-md-4 demo">
                                                <label class="container"> 
                                                 <?php echo e(trans('admin.Cost_Center')); ?>

                                                <input type="checkbox" name="Cost_CenterDet" id="Cost_CenterBill" value="1" <?php if($colum->Cost_Center == 1): ?> checked class="FF che" <?php else: ?> class="FF Unche" <?php endif; ?> >
                                                <span class="checkmark"></span> 
                                                </label>
                                                <label class="container"> 
                                               <?php echo e(trans('admin.ShiftCode')); ?>

                                                <input  type="checkbox" name="ShiftCodeDet" id="ShiftCode" value="1" <?php if($colum->ShiftCode == 1): ?> checked class="FF che" <?php else: ?> class="FF Unche" <?php endif; ?> >
                                                <span class="checkmark"></span> 
                                                </label>
                                                <label class="container">
                                                 <?php echo e(trans('admin.Executor')); ?>

                                                <input  type="checkbox" name="ExecutorDet" id="ExecutorBill" value="1" <?php if($colum->Executor == 1): ?> checked class="FF che" <?php else: ?> class="FF Unche" <?php endif; ?> >
                                                <span class="checkmark"></span> 
                                                </label>
                                                <label class="container">
                                             <?php echo e(trans('admin.User')); ?>

                                                <input type="checkbox" name="UserDet" id="UserBill" value="1" <?php if($colum->User == 1): ?> checked class="FF che" <?php else: ?> class="FF Unche" <?php endif; ?> >
                                                <span class="checkmark"></span> 
                                                </label>
                                                <label class="container">
                                           <?php echo e(trans('admin.Coin')); ?>

                                                <input  type="checkbox" name="CoinDet" id="CoinBill" value="1" <?php if($colum->Coin == 1): ?> checked class="FF che" <?php else: ?> class="FF Unche" <?php endif; ?> >
                                                <span class="checkmark"></span> 
                                                </label>
                                                <label class="container">
                                              <?php echo e(trans('admin.Due_Date')); ?>

                                                <input  type="checkbox" name="Due_DateDet" id="Due_Date" value="1" <?php if($colum->Due_Date == 1): ?> checked class="FF che" <?php else: ?> class="FF Unche" <?php endif; ?> >
                                                <span class="checkmark"></span> 
                                                </label>
                                                <label class="container"> 
                                               <?php echo e(trans('admin.Delegate')); ?>

                                                <input  type="checkbox" name="DelegateDet" id="DelegateBill" value="1" <?php if($colum->Delegate == 1): ?> checked class="FF che" <?php else: ?> class="FF Unche" <?php endif; ?> >
                                                <span class="checkmark"></span> 
                                                </label>
                                                <label class="container">
                                              <?php echo e(trans('admin.Note')); ?>

                                                <input  type="checkbox" name="NoteDet" id="Note" value="1" <?php if($colum->Note == 1): ?> checked class="FF che" <?php else: ?> class="FF Unche" <?php endif; ?> >
                                                <span class="checkmark"></span> 
                                                </label>
                                                <label class="container">
                                              <?php echo e(trans('admin.Total_Return')); ?>

                                                <input  type="checkbox" name="Total_ReturnDet" id="Total_Return" value="1" <?php if($colum->Total_Return == 1): ?> checked class="FF che" <?php else: ?> class="FF Unche" <?php endif; ?> >
                                                <span class="checkmark"></span> 
                                                </label>
                                             </div>
                                             <div class="col-md-4 demo">
                                                <label class="container">
                                                <?php echo e(trans('admin.Total_Price')); ?>

                                                <input  type="checkbox" name="Total_PriceDet" id="Total_Price" value="1" <?php if($colum->Total_Price == 1): ?> checked class="FF che" <?php else: ?> class="FF Unche" <?php endif; ?> >
                                                <span class="checkmark"></span> 
                                                </label>
                                                <label class="container">
                                                <?php echo e(trans('admin.Total_Discount')); ?>

                                                <input  type="checkbox" name="Total_DiscountDet" id="Total_Discount" value="1" <?php if($colum->Total_Discount == 1): ?> checked class="FF che" <?php else: ?> class="FF Unche" <?php endif; ?> >
                                                <span class="checkmark"></span> 
                                                </label>
                                                <label class="container">
                                               <?php echo e(trans('admin.Total_Tax')); ?>

                                                <input  type="checkbox" name="Total_TaxDet" id="Total_Tax" value="1" <?php if($colum->Total_Tax == 1): ?> checked class="FF che" <?php else: ?> class="FF Unche" <?php endif; ?> >
                                                <span class="checkmark"></span> 
                                                </label>
                                                <label class="container"> 
                                          <?php echo e(trans('admin.Total_Net')); ?>

                                                <input  type="checkbox" name="Total_NetDet" id="Total_Net" value="1" <?php if($colum->Total_Net == 1): ?> checked class="FF che" <?php else: ?> class="FF Unche" <?php endif; ?> >
                                                <span class="checkmark"></span> 
                                                </label>
                                                <label class="container"> 
                                               <?php echo e(trans('admin.Paid')); ?>

                                                <input  type="checkbox" name="PaidDet" id="Paid" value="1" <?php if($colum->Paid == 1): ?> checked class="FF che" <?php else: ?> class="FF Unche" <?php endif; ?> >
                                                <span class="checkmark"></span> 
                                                </label>
                                                <label class="container">  
                                                <?php echo e(trans('admin.Residual')); ?>

                                                <input  type="checkbox" name="ResidualDet" id="Residual" value="1" <?php if($colum->Residual == 1): ?> checked class="FF che" <?php else: ?> class="FF Unche" <?php endif; ?> >
                                                <span class="checkmark"></span> 
                                                </label>
                                                <label class="container">  
                                              <?php echo e(trans('admin.Time')); ?>

                                                <input  type="checkbox" name="TimeDet" id="Time" value="1" <?php if($colum->Time == 1): ?> checked class="FF che" <?php else: ?> class="FF Unche" <?php endif; ?> >
                                                <span class="checkmark"></span> 
                                                </label>
                                             </div>
                                          </div>
                                       </div>
                                    </div>
                                 
                                    <div class="col-md-2">
                                       <div class="box" style="background: #ffffff;">
                                          <div class="row">
                                             <div class="col-md-12 demo">
                                                <div class="custom-control custom-checkbox">
                                                   <button type="button" id="ChoicedAll"  class="btn btn-warning"><i class="fal fa-check-square"></i> 
                                                  <?php echo e(trans('admin.ChoicedAll')); ?>     
                                                   </button>
                                                </div>
                                                <div class="custom-control custom-checkbox">
                                                   <button type="button" id="CancelChoicedAll" class="btn btn-info"><i class="fal fa-square"></i> 
                                                  <?php echo e(trans('admin.CancelChoicedAll')); ?>       
                                                   </button>
                                                </div>
                                                <div class="custom-control custom-checkbox">
                                                   <button type="button" id="OppositeChoiced" class="btn btn-danger"><i class="fal fa-square"></i> 
                                                 <?php echo e(trans('admin.OppositeChoiced')); ?>       
                                                   </button>
                                                </div>
                                                <div class="custom-control custom-checkbox">
                                                   <button type="button" id="DefaultChoiced" class="btn btn-secondary"><i class="fal fa-check"></i> 
                                                      <?php echo e(trans('admin.DefaultChoiced')); ?>       
                                                   </button>
                                                </div>
                                                <div class="custom-control custom-checkbox">
                                                   <button type="button" id="SaveasDefault" class="btn btn-success"><i class="fal fa-check-circle"></i> 
                                                   <?php echo e(trans('admin.SaveasDefault')); ?>         
                                                   </button>
                                                </div>
                                             </div>
                                          </div>
                                       </div>
                                    </div>
                                 </div>
                              </div>
                           </div>
                           <div class="form-row">
                              <div class="buttons mt-3">
                                 <button type="submit" class="btn btn-primary"><i class="fal fa-save"></i> 
                                 <?php echo e(trans('admin.ShowReport')); ?>         
                                 </button>
                              </div>
                           </div>
                        </div>
                     </div>
                  </div>
               </div>
            </div>
         </div>
      </div>
   </form>
</main>
<?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>
<script>
   //_fnFeatureHtmlLength();
   $(document).ready(function () {
       // Setup - add a text input to each footer cell
       $('#dt-basic-example thead tr').clone(true).appendTo('#dt-basic-example thead');
       $('#dt-basic-example thead tr:eq(1) th').each(function (i) {
           var title = $(this).text();
           $(this).html('<input type="text" class="form-control form-control-sm" placeholder="Search ' + title + '" />');
   
           $('input', this).on('keyup change', function () {
               if (table.column(i).search() !== this.value) {
                   table
                       .column(i)
                       .search(this.value)
                       .draw();
               }
           });
       });
       var table = $('#dt-basic-example').DataTable(
           {
               responsive: true,
               orderCellsTop: true,
               fixedHeader: true,
               lengthChange: true,
   
               dom: "<'row mb-3'<'col-sm-12 col-md-3 d-flex align-items-center justify-content-start'f><'col-sm-12 col-md-9 d-flex align-items-center justify-content-end'B>>" +
                   "<'row'<'col-sm-12'tr>>" +
                   "<'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",
   
               buttons: [
                   {
                       extend: 'pageLength',
                       className: 'btn-outline-default'
                   },
                   {
                       extend: 'colvis',
                       text: 'Column Visibility',
                       titleAttr: 'Col visibility',
                       className: 'btn-outline-default'
                   },
                   {
                       extend: 'pdfHtml5',
                       text: 'PDF',
                       titleAttr: 'Generate PDF',
                       className: 'btn-outline-danger btn-sm mr-1'
                   },
                   {
                       extend: 'excelHtml5',
                       text: 'Excel',
                       titleAttr: 'Generate Excel',
                       className: 'btn-outline-success btn-sm mr-1'
                   },
                   {
                       extend: 'csvHtml5',
                       text: 'CSV',
                       titleAttr: 'Generate CSV',
                       className: 'btn-outline-primary btn-sm mr-1'
                   },
                   {
                       extend: 'copyHtml5',
                       text: 'Copy',
                       titleAttr: 'Copy to clipboard',
                       className: 'btn-outline-primary btn-sm mr-1'
                   },
                   {
                       extend: 'print',
                       text: 'Print',
                       titleAttr: 'Print Table',
                       className: 'btn-outline-primary btn-sm'
                   }
               ],
           });
       $('.js-thead-colors a').on('click', function () {
           var theadColor = $(this).attr("data-bg");
           console.log(theadColor);
           $('#dt-basic-example thead').removeClassPrefix('bg-').addClass(theadColor);
       });
   
       $('.js-tbody-colors a').on('click', function () {
           var theadColor = $(this).attr("data-bg");
           console.log(theadColor);
           $('#dt-basic-example').removeClassPrefix('bg-').addClass(theadColor);
       });
   
   });
   
</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
           }
   
   
   $('#AccountDificit').select2({
   placeholder: "select...",
   ajax: {
   type: "GET",
   dataType: 'json',
   url: 'AllSubAccounts',
   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 ) }
   }
   }
   });
   
   
   $('#AccountDificit').on('select2:select', function (e) {
   console.log("select done", e.params.data);
   });
      
           
   $('#AccountExcess').select2({
   placeholder: "select...",
   ajax: {
   type: "GET",
   dataType: 'json',
   url: 'AllSubAccounts',
   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 ) }
   }
   }
   });
   
   
   $('#AccountExcess').on('select2:select', function (e) {
   console.log("select done", e.params.data);
   });
                      
   
           
         $("#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,
                   };
                           
       
         $.ajax({
                         url: 'AllClientsFilterJS/'+params.term,
                         type:"GET",
                         dataType:"json",
                         beforeSend: function(){
                             $('#loader').css("visibility", "visible");
                         },
   
                         success:function(data) {
                                     $('#client').empty();  
                             $.each(data, function(key, value){
   
                    $('#client').append('<option value="'+ key +'">' + value + '</option>');
              
                             });
                         },
                         complete: function(){
                             $('#loader').css("visibility", "hidden");
                         }
                     });
       
       
       
   }
           },
       });
   
       $("#client").on("select2:select", function (e) {
           console.log("select done", e.params.data);
       });
       
                   
           
       });
   });
</script>



<!-- ~Multi Select Choiced and removed  -->
<script>

$('#select_all_paymethod').click(function() {

             $("#Payment_Method").select2("destroy");
$("#Payment_Method").find('option').attr('selected',true);
$("#Payment_Method").select2();
  
});
    
$('#remove_all_paymethod').click(function() {

            $("#Payment_Method").select2("destroy");
$("#Payment_Method").find('option').attr('selected',false);
$("#Payment_Method").select2();
});
    

$('#select_all_type').click(function() {

             $("#Type").select2("destroy");
$("#Type").find('option').attr('selected',true);
$("#Type").select2();
  
});
    
$('#remove_all_type').click(function() {

            $("#Type").select2("destroy");
$("#Type").find('option').attr('selected',false);
$("#Type").select2();
});

</script>

<!-- Choiced Checkbox -->
<script>
    
    $('.FF').on('click' , function(){
    var $a1Check  = $(this).is(':checked');

   
    if($a1Check){
       $(this).val(1);
    }
    else{
         $(this).val(0);
    }    
    
        
    
    
});
    
    
    $('#ChoicedAll').click(function() {
    $('.FF').prop('checked', true);
    $('.FF').val(1);
  
});
    
    
$('#CancelChoicedAll').click(function() {
    $('.FF').prop('checked', false);
  $('.FF').val(0);
});

    
$('#OppositeChoiced').click(function() {
    
    $('.FF').each(function () {
  $(this).prop('checked', !$(this).is(':checked'));
        
        
         var $a1Check  = $(this).is(':checked');

   
    if($a1Check){
       $(this).val(1);
    }
    else{
         $(this).val(0);
    }    
        
});

    
});
    
    
    $('#DefaultChoiced').click(function() {
    
    $('.Unche').prop('checked', false);
     $('.che').prop('checked', true);

       $('.che').val(1);
       $('.Unche').val(0);
});

     $('#SaveasDefault').click(function() {
    
    var DateBill = $('#DateBill').val();  
    var CodeBill = $('#CodeBill').val();  
    var Refrence_NumberBill = $('#Refrence_NumberBill').val();  
    var ClientBill = $('#ClientBill').val();  
    var BranchBill = $('#BranchBill').val();  
    var StoreBill = $('#StoreBill').val();  
    var Payment_MethodBill = $('#Payment_MethodBill').val();  
    var SafeBill = $('#SafeBill').val();  
    var TypeBill = $('#TypeBill').val();  
    var Shipping = $('#Shipping').val();  
    var Cost_CenterBill = $('#Cost_CenterBill').val();  
    var ShiftCode = $('#ShiftCode').val();  
    var ExecutorBill = $('#ExecutorBill').val();  
    var UserBill = $('#UserBill').val();  
    var CoinBill = $('#CoinBill').val();  
    var Due_Date = $('#Due_Date').val();  
    var DelegateBill = $('#DelegateBill').val();  
    var Note = $('#Note').val();  
    var Total_Return = $('#Total_Return').val();  
    var Total_Price = $('#Total_Price').val();  
    var Total_Discount = $('#Total_Discount').val();  
    var Total_Tax = $('#Total_Tax').val();  
    var Total_Net = $('#Total_Net').val();  
    var Paid = $('#Paid').val();  
    var Residual = $('#Residual').val();  
    var Time = $('#Time').val();  

                         $.ajax({
                   url: 'SaveDefaultColumnsVendorAccountStatement',
                   type:"GET",
                   data:{
                   DateBill:DateBill,
                   CodeBill:CodeBill,
                   Refrence_NumberBill:Refrence_NumberBill,
                   ClientBill:ClientBill,
                   BranchBill:BranchBill,
                   StoreBill:StoreBill,
                   Payment_MethodBill:Payment_MethodBill,
                   SafeBill:SafeBill,
                   TypeBill:TypeBill,
                   Shipping:Shipping,
                   Cost_CenterBill:Cost_CenterBill,
                   ShiftCode:ShiftCode,
                   ExecutorBill:ExecutorBill,
                   UserBill:UserBill,
                   CoinBill:CoinBill,
                   Due_Date:Due_Date,
                   DelegateBill:DelegateBill,
                   Note:Note,
                   Total_Return:Total_Return,
                   Total_Price:Total_Price,
                   Total_Discount:Total_Discount,
                   Total_Tax:Total_Tax,
                   Total_Net:Total_Net,
                   Paid:Paid,
                   Residual:Residual,
                   Time:Time
              
                   },
                   dataType:"json",
                   beforeSend: function(){
                       $('#loader').css("visibility", "visible");
                   },
   
                   success:function(data) {
   
                
                alert('تم الحفظ كافتراضي');      
         
       
                   },
                   complete: function(){
                       $('#loader').css("visibility", "hidden");
                   }
               });
    
});

</script>

<?php $__env->stopPush(); ?>
<?php echo $__env->make('admin.index', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/klarhost/public_html/1.klarhost.com/resources/views/admin/Reports/VendorAccountStatement.blade.php ENDPATH**/ ?>