<?php $__env->startSection('content'); ?>
<?php
use App\Models\CompanyData;
$Def=CompanyData::orderBy('id','desc')->first();
?>
  <title><?php echo e(trans('admin.DailyClosing')); ?></title>
<style>
    @media  print{
        .col-md-3{
                    -webkit-box-flex: 0;
        -ms-flex: 0 0 25%;
        flex: 0 0 25%;
        max-width: 10%;
    
        }
        .col-md-2{
                    -webkit-box-flex: 0;
        -ms-flex: 0 0 25%;
        flex: 0 0 25%;
        max-width: 10%;
    
        }
    }
</style>

    <main id="js-page-content" role="main" class="page-content">
                    <ol class="breadcrumb page-breadcrumb no-print">
                      <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.DailyClosing')); ?>   </li>
                        <li class="position-absolute pos-top pos-right d-none d-sm-block"><span
                                class="js-get-date"></span></li>
                    </ol>
                    
                                               <!-- Head Of Print -->
                     <div class="row Headerrr">
                      <div class="col-4">
                            <div id="panel-1" class="panel d-none d-print-block" style="margin-top:30px;">
                      <div class="row invoive-info ">
                       
                                          <div  style="text-align: center;" class="col-md-4 col-sm-4 col-4 invoice-client-info">
                                                <div class="style-info">
                                                    <h1 class="HeaderInvoice" style="text-align: center;font-size:15px" class="m-0">
                                               <?php if(!empty($Def->Name)): ?>
                      <?php echo e($Def->Name); ?>

                      <?php else: ?>
                       <?php echo e(trans('admin.Klar')); ?>

                      <?php endif; ?>         
                                                    </h1>
                              <h3  style="text-align: center;font-size:15px" class=" m-10">
                         <?php if(!empty($Def->Print_Text)): ?>
                      <?php echo e($Def->Print_Text); ?>

                      <?php endif; ?>                
                                                    </h3>
                                                </div>
                                            </div>
                                        
                                        </div>
                                        <hr>
                                        </div>
                                        </div>  
                         
                              <div class="col-4 text-center" >
                            <div id="panel-1" class="panel d-none d-print-block" style="margin-top:30px;">
                      <div class="row invoive-info " style="display:flex;  justify-content: center;">
                                          
                                            <div style="text-align: center;" class="col-md-4 col-sm-4 col-4 invoice-client-info" style="border:unset;">
                                                <h1 style="text-align: center;" class="HeaderInvoice"> <?php echo e(trans('admin.DailyClosing')); ?> </h1>
                                            </div>
                                 
                                        </div>
                                        <hr>
                                        </div>
                                        </div>
                                        
                                <div class="col-4">
                            <div id="panel-1" class="panel d-none d-print-block" style="margin-top:30px;">
                      <div class="row invoive-info "style="display:flex;         justify-content: flex-end;">
                                         
                                   <div  style="text-align: center; " class="col-md-4 col-sm-4 col-4 invoice-client-info">
                         <div class="style-info">
                       <?php if(!empty($Def->Logo)): ?>         
    <img class="logoPri" style="height: 50px; " class="img-fluid" src="<?php echo e(URL::to($Def->Logo)); ?>" alt="Logo" />
                                       
                    <?php else: ?>  
 <img class="logoPri" style="height: 50px;" class="img-fluid" src="https://klarerp.com/site/img/theme/logo.png" alt="Logo" />
                      <?php endif; ?>
               
                                       </div>
                                            </div>
                         
                    
                                        </div>
                                        <hr>
                                        </div>
                                        </div>            
                                        
                                        </div>
       
                    <!-- data entry -->
                    <div class="row ">
                        <div class="col-lg-12">
                            <div id="panel-2" class="panel">
                                <div class="panel-hdr no-print">
                                    <h2>
                                        <span class="fw-300"><i>  <?php echo e(trans('admin.DailyClosing')); ?>     </i></span>
                                    </h2>
                                </div>
                                <div class="panel-container show">
                                    <div class="panel-content">
                                        <form class="form-row" action="<?php echo e(url('FilterDailyClosingForm')); ?>" method="get">
                                            <div class="form-group col-md-3 col-4">
                                              <label class="form-label" for="simpleinput"><?php echo e(trans('admin.From')); ?></label>
                                                <input type="date" value="<?php echo e(date('Y-m-d')); ?>" name="from" id="from" class="form-control">
                                            </div>
                                            <div class="form-group col-md-3 col-4">
                                           <label class="form-label" for="simpleinput"><?php echo e(trans('admin.To')); ?></label>
                                                <input type="date" value="<?php echo e(date('Y-m-d')); ?>" name="to" id="to" class="form-control">
                                            </div>
                                            
                                            <?php if(auth()->guard('admin')->user()->emp ==  0): ?>
                                                         <div class="form-group col-md-2">
                                                <label class="form-label" for="">  <?php echo e(trans('admin.Safe')); ?> </label>
                                                <select class="select2 form-control w-100" name="Safe" id="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>
                                            <?php else: ?>
                                                              <div class="form-group col-md-2">
                                                <label class="form-label" for="">  <?php echo e(trans('admin.Safe')); ?> </label>
                                                <select class="select2 form-control w-100" name="Safe" id="Safe" required>
                                             <option value=""> <?php echo e(trans('admin.Safe')); ?></option>
                                   
                                                <option value="<?php echo e(auth()->guard('admin')->user()->safe); ?>">
                                       
                                                    
                                                    
                                      <?php echo e(app()->getLocale() == 'ar' ?auth()->guard('admin')->user()->safe()->first()->Name :auth()->guard('admin')->user()->safe()->first()->NameEn); ?>                    
                                                </option>
                                          
                                                </select>
                                            </div>
                                            
                                            <?php endif; ?>

                                            <div class="form-group col-md-3 no-print">
                                                <div class="buttons mt-4">
                                <button type="button" class=" btn btn-primary w-100" onclick="ModalNoPrint()" href="#"> <i class="fal fa-print"></i> <?php echo e(trans('admin.Print')); ?></button>
                                                </div>
                                            </div>
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row ">
                        <div class="col-xl-12">
                            <div id="panel-1" class="panel">
                                <div class="panel-hdr">
                                    <h2>
                                   <?php echo e(trans('admin.DailyClosing')); ?>

                                    </h2>

                                </div>
                                <div class="panel-container show">
                                    <div class="panel-content">
 
                                        <!-- datatable start -->
                                        <table id="X" class="table table-bordered">
                                            <thead class="bg-highlight">
                                                <tr>
                                                    <th><?php echo e(trans('admin.Code')); ?></th>
                                                    <th><?php echo e(trans('admin.Account')); ?></th>
                                                    <th><?php echo e(trans('admin.Total_Price')); ?></th>
                                                </tr>
                                            </thead>
                                            <tbody class="Data">
                                    
                                            </tbody>
                                            <tfoot>
                                                <tr>
                                                    <th><?php echo e(trans('admin.Code')); ?></th>
                                                    <th><?php echo e(trans('admin.Account')); ?></th>
                                                    <th><?php echo e(trans('admin.Total_Price')); ?></th>
                                                </tr>
                                            </tfoot>
                        
                                        </table>
                                     
                                        <!-- datatable end -->
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </main>

<!-- Modal  Sales Details-->
<div class="modal fade" id="SalesDet" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-xl">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel"><?php echo e(trans('admin.Sales')); ?></h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
                              <table  class="table table-bordered">
                                            <thead class="bg-highlight">
                                                <tr>
                                                    <th><?php echo e(trans('admin.Code')); ?></th>
                                                    <th><?php echo e(trans('admin.Account')); ?></th>
                                                    <th><?php echo e(trans('admin.Total_Price')); ?></th>
                                                </tr>
                                            </thead>
                                            <tbody class="DataSales">
                                    
                                            </tbody>
                                        </table>
      </div>
      <div class="modal-footer">
             <button type="button" class="btn btn-primary" data-dismiss="modal"><?php echo e(trans('admin.Close')); ?></button>
        <button type="button" onclick="ModalPrint()" class="btn btn-primary"><?php echo e(trans('admin.Print')); ?></button>
      </div>
    </div>
  </div>
</div>

<!-- Modal  Return Sales Details-->
<div class="modal fade" id="RSalesDet" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-xl">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel"><?php echo e(trans('admin.ReturnSales')); ?></h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
                              <table  class="table table-bordered">
                                            <thead class="bg-highlight">
                                                <tr>
                                                    <th><?php echo e(trans('admin.Code')); ?></th>
                                                    <th><?php echo e(trans('admin.Account')); ?></th>
                                                    <th><?php echo e(trans('admin.Total_Price')); ?></th>
                                                </tr>
                                            </thead>
                                            <tbody class="DataRSales">
                                    
                                            </tbody>
                                        </table>
      </div>
      <div class="modal-footer">
             <button type="button" class="btn btn-primary" data-dismiss="modal"><?php echo e(trans('admin.Close')); ?></button>
        <button type="button" onclick="ModalPrint()" class="btn btn-primary"><?php echo e(trans('admin.Print')); ?></button>
      </div>
    </div>
  </div>
</div>


<!-- Modal  Recipt Vouchert Details-->
<div class="modal fade" id="ReciptDet" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-xl">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel"><?php echo e(trans('admin.ReciptVoucher')); ?></h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
                              <table  class="table table-bordered">
                                            <thead class="bg-highlight">
                                                <tr>
                                                    <th><?php echo e(trans('admin.Code')); ?></th>
                                                    <th><?php echo e(trans('admin.Account')); ?></th>
                                                    <th><?php echo e(trans('admin.Total_Price')); ?></th>
                                                </tr>
                                            </thead>
                                            <tbody class="DataRecipt">
                                    
                                            </tbody>
                                        </table>
      </div>
      <div class="modal-footer">
             <button type="button" class="btn btn-primary" data-dismiss="modal"><?php echo e(trans('admin.Close')); ?></button>
        <button type="button" onclick="ModalPrint()" class="btn btn-primary"><?php echo e(trans('admin.Print')); ?></button>
      </div>
    </div>
  </div>
</div>

<!-- Modal  TranferToDet Details-->
<div class="modal fade" id="TranferToDet" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-xl">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel"><?php echo e(trans('admin.SafeTransfer')); ?></h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
                              <table  class="table table-bordered">
                                            <thead class="bg-highlight">
                                                <tr>
                                                    <th><?php echo e(trans('admin.Code')); ?></th>
                                                    <th><?php echo e(trans('admin.Account')); ?></th>
                                                    <th><?php echo e(trans('admin.Total_Price')); ?></th>
                                                </tr>
                                            </thead>
                                            <tbody class="DataTransferTo">
                                    
                                            </tbody>
                                        </table>
      </div>
      <div class="modal-footer">
             <button type="button" class="btn btn-primary" data-dismiss="modal"><?php echo e(trans('admin.Close')); ?></button>
        <button type="button" onclick="ModalPrint()" class="btn btn-primary"><?php echo e(trans('admin.Print')); ?></button>
      </div>
    </div>
  </div>
</div>


<!-- Modal  Payment Voucher Details-->
<div class="modal fade" id="PaymentDet" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-xl">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel"><?php echo e(trans('admin.PaymentVoucher')); ?></h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
                              <table  class="table table-bordered">
                                            <thead class="bg-highlight">
                                                <tr>
                                                    <th><?php echo e(trans('admin.Code')); ?></th>
                                                    <th><?php echo e(trans('admin.Account')); ?></th>
                                                    <th><?php echo e(trans('admin.Total_Price')); ?></th>
                                                </tr>
                                            </thead>
                                            <tbody class="DataPayment">
                                    
                                            </tbody>
                                        </table>
      </div>
      <div class="modal-footer">
             <button type="button" class="btn btn-primary" data-dismiss="modal"><?php echo e(trans('admin.Close')); ?></button>
        <button type="button" onclick="ModalPrint()" class="btn btn-primary"><?php echo e(trans('admin.Print')); ?></button>
      </div>
    </div>
  </div>
</div>


<!-- Modal  Purchases Details-->
<div class="modal fade" id="PurchDet" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-xl">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel"><?php echo e(trans('admin.Purchases')); ?></h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
                              <table  class="table table-bordered">
                                            <thead class="bg-highlight">
                                                <tr>
                                                    <th><?php echo e(trans('admin.Code')); ?></th>
                                                    <th><?php echo e(trans('admin.Account')); ?></th>
                                                    <th><?php echo e(trans('admin.Total_Price')); ?></th>
                                                </tr>
                                            </thead>
                                            <tbody class="DataPurchases">
                                    
                                            </tbody>
                                        </table>
      </div>
      <div class="modal-footer">
             <button type="button" class="btn btn-primary" data-dismiss="modal"><?php echo e(trans('admin.Close')); ?></button>
        <button type="button" onclick="ModalPrint()" class="btn btn-primary"><?php echo e(trans('admin.Print')); ?></button>
      </div>
    </div>
  </div>
</div>


<!-- Modal  Return Purchases Details-->
<div class="modal fade" id="RPurchDet" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-xl">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel"><?php echo e(trans('admin.ReturnPurchases')); ?></h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
                              <table  class="table table-bordered">
                                            <thead class="bg-highlight">
                                                <tr>
                                                    <th><?php echo e(trans('admin.Code')); ?></th>
                                                    <th><?php echo e(trans('admin.Account')); ?></th>
                                                    <th><?php echo e(trans('admin.Total_Price')); ?></th>
                                                </tr>
                                            </thead>
                                            <tbody class="DataRPurchases">
                                    
                                            </tbody>
                                        </table>
      </div>
      <div class="modal-footer">
             <button type="button" class="btn btn-primary" data-dismiss="modal"><?php echo e(trans('admin.Close')); ?></button>
        <button type="button" onclick="ModalPrint()" class="btn btn-primary"><?php echo e(trans('admin.Print')); ?></button>
      </div>
    </div>
  </div>
</div>

<!-- Modal  Tranfer From Details-->
<div class="modal fade" id="TransferFromDet" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-xl">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel"><?php echo e(trans('admin.SafeTransfer')); ?></h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
                              <table  class="table table-bordered">
                                            <thead class="bg-highlight">
                                                <tr>
                                                    <th><?php echo e(trans('admin.Code')); ?></th>
                                                    <th><?php echo e(trans('admin.Account')); ?></th>
                                                    <th><?php echo e(trans('admin.Total_Price')); ?></th>
                                                </tr>
                                            </thead>
                                            <tbody class="DataTransferFrom">
                                    
                                            </tbody>
                                        </table>
      </div>
      <div class="modal-footer">
             <button type="button" class="btn btn-primary" data-dismiss="modal"><?php echo e(trans('admin.Close')); ?></button>
        <button type="button" onclick="ModalPrint()" class="btn btn-primary"><?php echo e(trans('admin.Print')); ?></button>
      </div>
    </div>
  </div>
</div>

<!-- Modal  ImportCheckDet  Details-->
<div class="modal fade" id="ImportCheckDet" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-xl">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel"><?php echo e(trans('admin.Incoming_checks')); ?></h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
                              <table  class="table table-bordered">
                                            <thead class="bg-highlight">
                                                <tr>
                                                    <th><?php echo e(trans('admin.Code')); ?></th>
                                                    <th><?php echo e(trans('admin.Account')); ?></th>
                                                    <th><?php echo e(trans('admin.Total_Price')); ?></th>
                                                </tr>
                                            </thead>
                                            <tbody class="DataImport">
                                    
                                            </tbody>
                                        </table>
      </div>
      <div class="modal-footer">
             <button type="button" class="btn btn-primary" data-dismiss="modal"><?php echo e(trans('admin.Close')); ?></button>
        <button type="button" onclick="ModalPrint()" class="btn btn-primary"><?php echo e(trans('admin.Print')); ?></button>
      </div>
    </div>
  </div>
</div>

<!-- Modal  Setllement3agzDet  Details-->
<div class="modal fade" id="Setllement3agzDet" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-xl">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel"><?php echo e(trans('admin.Setllement')); ?></h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
                              <table  class="table table-bordered">
                                            <thead class="bg-highlight">
                                                <tr>
                                                    <th><?php echo e(trans('admin.Code')); ?></th>
                                                    <th><?php echo e(trans('admin.Account')); ?></th>
                                                    <th><?php echo e(trans('admin.Total_Price')); ?></th>
                                                </tr>
                                            </thead>
                                            <tbody class="DataSettlement3">
                                    
                                            </tbody>
                                        </table>
      </div>
      <div class="modal-footer">
             <button type="button" class="btn btn-primary" data-dismiss="modal"><?php echo e(trans('admin.Close')); ?></button>
        <button type="button" onclick="ModalPrint()" class="btn btn-primary"><?php echo e(trans('admin.Print')); ?></button>
      </div>
    </div>
  </div>
</div>


<!-- Modal  WaslAmanaDet Details-->
<div class="modal fade" id="WaslAmanaDet" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-xl">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel"><?php echo e(trans('admin.Insurance_Paper')); ?></h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
                              <table  class="table table-bordered">
                                            <thead class="bg-highlight">
                                                <tr>
                                                    <th><?php echo e(trans('admin.Code')); ?></th>
                                                    <th><?php echo e(trans('admin.Account')); ?></th>
                                                    <th><?php echo e(trans('admin.Total_Price')); ?></th>
                                                </tr>
                                            </thead>
                                            <tbody class="DataWasl">
                                    
                                            </tbody>
                                        </table>
      </div>
      <div class="modal-footer">
             <button type="button" class="btn btn-primary" data-dismiss="modal"><?php echo e(trans('admin.Close')); ?></button>
        <button type="button" onclick="ModalPrint()" class="btn btn-primary"><?php echo e(trans('admin.Print')); ?></button>
      </div>
    </div>
  </div>
</div>


<!-- Modal  SalesPetrolDet Details-->
<div class="modal fade" id="SalesPetrolDet" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-xl">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel"><?php echo e(trans('admin.SalesPetrol')); ?></h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
                              <table  class="table table-bordered">
                                            <thead class="bg-highlight">
                                                <tr>
                                                    <th><?php echo e(trans('admin.Code')); ?></th>
                                                    <th><?php echo e(trans('admin.Account')); ?></th>
                                                    <th><?php echo e(trans('admin.Total_Price')); ?></th>
                                                </tr>
                                            </thead>
                                            <tbody class="DataPetrol">
                                    
                                            </tbody>
                                        </table>
      </div>
      <div class="modal-footer">
             <button type="button" class="btn btn-primary" data-dismiss="modal"><?php echo e(trans('admin.Close')); ?></button>
        <button type="button" onclick="ModalPrint()" class="btn btn-primary"><?php echo e(trans('admin.Print')); ?></button>
      </div>
    </div>
  </div>
</div>


<!-- Modal  shippingTicketDet Details-->
<div class="modal fade" id="shippingTicketDet" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-xl">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel"><?php echo e(trans('admin.Ticket')); ?></h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
                              <table  class="table table-bordered">
                                            <thead class="bg-highlight">
                                                <tr>
                                                    <th><?php echo e(trans('admin.Code')); ?></th>
                                                    <th><?php echo e(trans('admin.Account')); ?></th>
                                                    <th><?php echo e(trans('admin.Total_Price')); ?></th>
                                                </tr>
                                            </thead>
                                            <tbody class="DataTicket">
                                    
                                            </tbody>
                                        </table>
      </div>
      <div class="modal-footer">
             <button type="button" class="btn btn-primary" data-dismiss="modal"><?php echo e(trans('admin.Close')); ?></button>
        <button type="button" onclick="ModalPrint()" class="btn btn-primary"><?php echo e(trans('admin.Print')); ?></button>
      </div>
    </div>
  </div>
</div>


<!-- Modal  MaintainceDet Details-->
<div class="modal fade" id="MaintainceDet" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-xl">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel"><?php echo e(trans('admin.Maintaince')); ?></h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
                              <table  class="table table-bordered">
                                            <thead class="bg-highlight">
                                                <tr>
                                                    <th><?php echo e(trans('admin.Code')); ?></th>
                                                    <th><?php echo e(trans('admin.Account')); ?></th>
                                                    <th><?php echo e(trans('admin.Total_Price')); ?></th>
                                                </tr>
                                            </thead>
                                            <tbody class="DataMaintaince">
                                    
                                            </tbody>
                                        </table>
      </div>
      <div class="modal-footer">
             <button type="button" class="btn btn-primary" data-dismiss="modal"><?php echo e(trans('admin.Close')); ?></button>
        <button type="button" onclick="ModalPrint()" class="btn btn-primary"><?php echo e(trans('admin.Print')); ?></button>
      </div>
    </div>
  </div>
</div>



<!-- Modal  ExportCheckDet Details-->
<div class="modal fade" id="ExportCheckDet" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-xl">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel"><?php echo e(trans('admin.Exporting_Checks')); ?></h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
                              <table  class="table table-bordered">
                                            <thead class="bg-highlight">
                                                <tr>
                                                    <th><?php echo e(trans('admin.Code')); ?></th>
                                                    <th><?php echo e(trans('admin.Account')); ?></th>
                                                    <th><?php echo e(trans('admin.Total_Price')); ?></th>
                                                </tr>
                                            </thead>
                                            <tbody class="DataExportChecks">
                                    
                                            </tbody>
                                        </table>
      </div>
      <div class="modal-footer">
             <button type="button" class="btn btn-primary" data-dismiss="modal"><?php echo e(trans('admin.Close')); ?></button>
        <button type="button" onclick="ModalPrint()" class="btn btn-primary"><?php echo e(trans('admin.Print')); ?></button>
      </div>
    </div>
  </div>
</div>

<!-- Modal  SetllementZyadaDet Details-->
<div class="modal fade" id="SetllementZyadaDet" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-xl">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel"><?php echo e(trans('admin.Settlement')); ?></h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
                              <table  class="table table-bordered">
                                            <thead class="bg-highlight">
                                                <tr>
                                                    <th><?php echo e(trans('admin.Code')); ?></th>
                                                    <th><?php echo e(trans('admin.Account')); ?></th>
                                                    <th><?php echo e(trans('admin.Total_Price')); ?></th>
                                                </tr>
                                            </thead>
                                            <tbody class="DataSettlementZyada">
                                    
                                            </tbody>
                                        </table>
      </div>
      <div class="modal-footer">
             <button type="button" class="btn btn-primary" data-dismiss="modal"><?php echo e(trans('admin.Close')); ?></button>
        <button type="button" onclick="ModalPrint()" class="btn btn-primary"><?php echo e(trans('admin.Print')); ?></button>
      </div>
    </div>
  </div>
</div>


<!-- Modal  RMaintainceDet Details-->
<div class="modal fade" id="RMaintainceDet" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-xl">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel"><?php echo e(trans('admin.ReturnMaintaince')); ?></h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
                              <table  class="table table-bordered">
                                            <thead class="bg-highlight">
                                                <tr>
                                                    <th><?php echo e(trans('admin.Code')); ?></th>
                                                    <th><?php echo e(trans('admin.Account')); ?></th>
                                                    <th><?php echo e(trans('admin.Total_Price')); ?></th>
                                                </tr>
                                            </thead>
                                            <tbody class="DataRMaintaince">
                                    
                                            </tbody>
                                        </table>
      </div>
      <div class="modal-footer">
             <button type="button" class="btn btn-primary" data-dismiss="modal"><?php echo e(trans('admin.Close')); ?></button>
        <button type="button" onclick="ModalPrint()" class="btn btn-primary"><?php echo e(trans('admin.Print')); ?></button>
      </div>
    </div>
  </div>
</div>


<!-- Modal  SalaryDet Details-->
<div class="modal fade" id="SalaryDet" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-xl">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel"><?php echo e(trans('admin.Salary')); ?></h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
                              <table  class="table table-bordered">
                                            <thead class="bg-highlight">
                                                <tr>
                                                    <th><?php echo e(trans('admin.Code')); ?></th>
                                                    <th><?php echo e(trans('admin.Account')); ?></th>
                                                    <th><?php echo e(trans('admin.Total_Price')); ?></th>
                                                </tr>
                                            </thead>
                                            <tbody class="DataSalary">
                                    
                                            </tbody>
                                        </table>
      </div>
      <div class="modal-footer">
             <button type="button" class="btn btn-primary" data-dismiss="modal"><?php echo e(trans('admin.Close')); ?></button>
        <button type="button" onclick="ModalPrint()" class="btn btn-primary"><?php echo e(trans('admin.Print')); ?></button>
      </div>
    </div>
  </div>
</div>



<!-- Modal  BorrowDet Details-->
<div class="modal fade" id="BorrowDet" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-xl">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel"><?php echo e(trans('admin.Borrow')); ?></h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
                              <table  class="table table-bordered">
                                            <thead class="bg-highlight">
                                                <tr>
                                                    <th><?php echo e(trans('admin.Code')); ?></th>
                                                    <th><?php echo e(trans('admin.Account')); ?></th>
                                                    <th><?php echo e(trans('admin.Total_Price')); ?></th>
                                                </tr>
                                            </thead>
                                            <tbody class="DataBorrow">
                                    
                                            </tbody>
                                        </table>
      </div>
      <div class="modal-footer">
             <button type="button" class="btn btn-primary" data-dismiss="modal"><?php echo e(trans('admin.Close')); ?></button>
        <button type="button" onclick="ModalPrint()" class="btn btn-primary"><?php echo e(trans('admin.Print')); ?></button>
      </div>
    </div>
  </div>
</div>


<!-- Modal  LoanDet Details-->
<div class="modal fade" id="LoanDet" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-xl">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel"><?php echo e(trans('admin.Loan')); ?></h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
                              <table  class="table table-bordered">
                                            <thead class="bg-highlight">
                                                <tr>
                                                    <th><?php echo e(trans('admin.Code')); ?></th>
                                                    <th><?php echo e(trans('admin.Account')); ?></th>
                                                    <th><?php echo e(trans('admin.Total_Price')); ?></th>
                                                </tr>
                                            </thead>
                                            <tbody class="DataLoan">
                                    
                                            </tbody>
                                        </table>
      </div>
      <div class="modal-footer">
             <button type="button" class="btn btn-primary" data-dismiss="modal"><?php echo e(trans('admin.Close')); ?></button>
        <button type="button" onclick="ModalPrint()" class="btn btn-primary"><?php echo e(trans('admin.Print')); ?></button>
      </div>
    </div>
  </div>
</div>



<!-- Modal  ExchangeDet Details-->
<div class="modal fade" id="ExchangeDet" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-xl">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel"><?php echo e(trans('admin.ExchangeCommission')); ?></h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
                              <table  class="table table-bordered">
                                            <thead class="bg-highlight">
                                                <tr>
                                                    <th><?php echo e(trans('admin.Code')); ?></th>
                                                    <th><?php echo e(trans('admin.Account')); ?></th>
                                                    <th><?php echo e(trans('admin.Total_Price')); ?></th>
                                                </tr>
                                            </thead>
                                            <tbody class="DataExchange">
                                    
                                            </tbody>
                                        </table>
      </div>
      <div class="modal-footer">
             <button type="button" class="btn btn-primary" data-dismiss="modal"><?php echo e(trans('admin.Close')); ?></button>
        <button type="button" onclick="ModalPrint()" class="btn btn-primary"><?php echo e(trans('admin.Print')); ?></button>
      </div>
    </div>
  </div>
</div>



<!-- Modal  AssetDet Details-->
<div class="modal fade" id="AssetDet" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-xl">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel"><?php echo e(trans('admin.Assets')); ?></h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
                              <table  class="table table-bordered">
                                            <thead class="bg-highlight">
                                                <tr>
                                                    <th><?php echo e(trans('admin.Code')); ?></th>
                                                    <th><?php echo e(trans('admin.Account')); ?></th>
                                                    <th><?php echo e(trans('admin.Total_Price')); ?></th>
                                                </tr>
                                            </thead>
                                            <tbody class="DataAssets">
                                    
                                            </tbody>
                                        </table>
      </div>
      <div class="modal-footer">
             <button type="button" class="btn btn-primary" data-dismiss="modal"><?php echo e(trans('admin.Close')); ?></button>
        <button type="button" onclick="ModalPrint()" class="btn btn-primary"><?php echo e(trans('admin.Print')); ?></button>
      </div>
    </div>
  </div>
</div>




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


<?php $__env->startPush('js'); ?>
<!--  Colors -->
<style>
    
    .Sales{
      background:#b570b5;
    }
    .TotalSales{
       background:#ffff9e;
    }
    
    .RSales{
        
        background: #8edddd;
    }
    .RTotalSales{
        background: #ffb3c0;
        
    }
    .NetSales{
        
        background: #cbcbcb;
    }
    
    .Recipt{
        background: #e56c6c;
        
    }
    .TotalRecipt{
        
        background: #dfa0e3;
    }
    .Payment{
        
       background: #ffffd2;
    }
    .TotalPayment{
        
        background: #aba1a1;
    }
    .TotalSafe{
        
        background: pink;
    }
    
        .Purch{
        
        background: #458564e8;
    }
        .TotalPurch{
        
        background: #458564e8;
    }
        .RPurch{
        
        background: #458564e8;
    }
        .RTotalPurch{
        
        background: #458564e8;
    }
    
          .ImportCheck{
        
        background: #458564e8;
    }
          .Settlement3agz{
        
        background: #458564e8;
    }
          .WaslAmana{
        
        background: #458564e8;
    }

        .SalesPetrol{
        
        background: #458564e8;
    }

            .shippingTicket{
        
        background: #458564e8;
    }

            .Maintaince{
        
        background: #458564e8;
    }            .ExportCheck{
        
        background: #458564e8;
    }            .SetllementZyada{
        
        background: #458564e8;
    }            .RMaintaince{
        
        background: #458564e8;
    }            .Salary{
        
        background: #458564e8;
    }            .Borrow{
        
        background: #458564e8;
    }            .Loan{
        
        background: #458564e8;
    }            .Exchange{
        
        background: #458564e8;
    }






</style>    

<!-- Filter -->
<script>
   $(document).ready(function(){
   
    fetch_customer_data();
   
    function fetch_customer_data(From = '',To = '',Safe = '')
    {
     $.ajax({
      url:'FilterDailyClosing',
      method:'GET',
      data:{From:From,To:To,Safe:Safe},
      dataType:'json',
      success:function(data)
      {
          

       $('.Data').html(data.table_data);     
  
         
    
      }
     })
    }
    

  $(document).on('change', '#from', function(){
     var From = $(this).val();     
     var To = $('#to').val();     
     var Safe = $('#Safe').val();          
     fetch_customer_data(From,To,Safe);
    });   

  $(document).on('change', '#to', function(){
     var To = $(this).val();     
     var From = $('#from').val();     
   var Safe = $('#Safe').val();          
     fetch_customer_data(From,To,Safe);
    });   
       
  
       
  $(document).on('change', '#Safe', function(){
     var Safe = $(this).val();     
     var To = $('#to').val();        
     var From = $('#from').val();      
  fetch_customer_data(From,To,Safe);
    });          
 
   
       
   });
</script>

    <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')); ?>">

    <style>
        th{
            width:135px!important;
        }
    </style>

 <script src="<?php echo e(asset('Admin/js/datagrid/datatables/datatables.export.js')); ?>"></script>
    <script src="<?php echo e(asset('Admin/js/datagrid/datatables/datatables.bundle.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>
  
  <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
            }

            $(".js-data-example-ajax").select2(
            {
                ajax:
                {
                    url: "https://api.github.com/search/repositories",
                    dataType: 'json',
                    delay: 250,
                    data: function(params)
                    {
                        return {
                            q: params.term, // search term
                            page: params.page
                        };
                    },
                    processResults: function(data, params)
                    {
                        // parse the results into the format expected by Select2
                        // since we are using custom formatting functions we do not need to
                        // alter the remote JSON data, except to indicate that infinite
                        // scrolling can be used
                        params.page = params.page || 1;

                        return {
                            results: data.items,
                            pagination:
                            {
                                more: (params.page * 30) < data.total_count
                            }
                        };
                    },
                    cache: true
                },
                placeholder: 'Search for a repository',
                escapeMarkup: function(markup)
                {
                    return markup;
                }, // let our custom formatter work
                minimumInputLength: 1,
                templateResult: formatRepo,
                templateSelection: formatRepoSelection
            });

            function formatRepo(repo)
            {
                if (repo.loading)
                {
                    return repo.text;
                }

                var markup = "<div class='select2-result-repository clearfix d-flex'>" +
                    "<div class='select2-result-repository__avatar mr-2'><img src='" + repo.owner.avatar_url + "' class='width-2 height-2 mt-1 rounded' /></div>" +
                    "<div class='select2-result-repository__meta'>" +
                    "<div class='select2-result-repository__title fs-lg fw-500'>" + repo.full_name + "</div>";

                if (repo.description)
                {
                    markup += "<div class='select2-result-repository__description fs-xs opacity-80 mb-1'>" + repo.description + "</div>";
                }

                markup += "<div class='select2-result-repository__statistics d-flex fs-sm'>" +
                    "<div class='select2-result-repository__forks mr-2'><i class='fal fa-lightbulb'></i> " + repo.forks_count + " Forks</div>" +
                    "<div class='select2-result-repository__stargazers mr-2'><i class='fal fa-star'></i> " + repo.stargazers_count + " Stars</div>" +
                    "<div class='select2-result-repository__watchers mr-2'><i class='fal fa-eye'></i> " + repo.watchers_count + " Watchers</div>" +
                    "</div>" +
                    "</div></div>";

                return markup;
            }

            function formatRepoSelection(repo)
            {
                return repo.full_name || repo.text;
            }
        });
    });

</script>
<script>
    var autoSave = $('#autoSave');
    var interval;
    var timer = function()
    {
        interval = setInterval(function()
        {
            //start slide...
            if (autoSave.prop('checked'))
                saveToLocal();

            clearInterval(interval);
        }, 3000);
    };

    //save
    var saveToLocal = function()
    {
        localStorage.setItem('summernoteData', $('#saveToLocal').summernote("code"));
        console.log("saved");
    }

    //delete 
    var removeFromLocal = function()
    {
        localStorage.removeItem("summernoteData");
        $('#saveToLocal').summernote('reset');
    }

    $(document).ready(function()
    {
        //init default
        $('.js-summernote').summernote(
        {
            height: 200,
            tabsize: 2,
            placeholder: "Type here...",
            dialogsFade: true,
            toolbar: [
                ['style', ['style']],
                ['font', ['strikethrough', 'superscript', 'subscript']],
                ['font', ['bold', 'italic', 'underline', 'clear']],
                ['fontsize', ['fontsize']],
                ['fontname', ['fontname']],
                ['color', ['color']],
                ['para', ['ul', 'ol', 'paragraph']],
                ['height', ['height']]
                ['table', ['table']],
                ['insert', ['link', 'picture', 'video']],
                ['view', ['fullscreen', 'codeview', 'help']]
            ],
            callbacks:
            {
                //restore from localStorage
                onInit: function(e)
                {
                    $('.js-summernote').summernote("code", localStorage.getItem("summernoteData"));
                },
                onChange: function(contents, $editable)
                {
                    clearInterval(interval);
                    timer();
                }
            }
        });

        //load emojis
        $.ajax(
        {
            url: 'https://api.github.com/emojis',
            async: false
        }).then(function(data)
        {
            window.emojis = Object.keys(data);
            window.emojiUrls = data;
        });

        //init emoji example
        $(".js-hint2emoji").summernote(
        {
            height: 100,
            toolbar: false,
            placeholder: 'type starting with : and any alphabet',
            hint:
            {
                match: /:([\-+\w]+)$/,
                search: function(keyword, callback)
                {
                    callback($.grep(emojis, function(item)
                    {
                        return item.indexOf(keyword) === 0;
                    }));
                },
                template: function(item)
                {
                    var content = emojiUrls[item];
                    return '<img src="' + content + '" width="20" /> :' + item + ':';
                },
                content: function(item)
                {
                    var url = emojiUrls[item];
                    if (url)
                    {
                        return $('<img />').attr('src', url).css('width', 20)[0];
                    }
                    return '';
                }
            }
        });

        //init mentions example
        $(".js-hint2mention").summernote(
        {
            height: 100,
            toolbar: false,
            placeholder: "type starting with @",
            hint:
            {
                mentions: ['jayden', 'sam', 'alvin', 'david'],
                match: /\B@(\w*)$/,
                search: function(keyword, callback)
                {
                    callback($.grep(this.mentions, function(item)
                    {
                        return item.indexOf(keyword) == 0;
                    }));
                },
                content: function(item)
                {
                    return '@' + item;
                }
            }
        });

    });

</script>
<script type="text/javascript">


    $(".show-table").click(function(){
        $(".hide-table").show();
    });
    
</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
                }

                 
  $('#coin').select2({
    ajax: {
        type: "GET",
        dataType: 'json',
        url: 'AllCoins',
        processResults: function (data) {
          return {
            results: $.map(data, function(obj, index) {
              return { id: index, text: obj };
            })
          };            
        },
        data: function (params) {  
     
          return {json: JSON.stringify( params.term )} 
                               
        }
        }
  });

           
    
$('#coin').on('select2:select', function (e) {
	console.log("select done", e.params.data);
});
              
                

             
            });
        });



    </script>

<!-- Details Fiilter -->
<script>
 function DetailsSales(){
  
     var from = $('#from').val();     
     var to = $('#to').val();     
     var Safe = $('#Safe').val();     

     $.ajax({
      url:'FilterSalesDetailsDailyClosing',
      method:'GET',
      data:{from:from,to:to,Safe:Safe},
      dataType:'json',
      success:function(data)
      {

       $('.DataSales').html(data.table_data);     
   
      }
     })
  


 }
    
function DetailsRSales(){
  
     var from = $('#from').val();     
     var to = $('#to').val();     
     var Safe = $('#Safe').val();     

     $.ajax({
      url:'FilterRSalesDetailsDailyClosing',
      method:'GET',
      data:{from:from,to:to,Safe:Safe},
      dataType:'json',
      success:function(data)
      {

       $('.DataRSales').html(data.table_data);     
   
      }
     })
  


 }    
    
function DetailsRecipt(){
  
     var from = $('#from').val();     
     var to = $('#to').val();     
     var Safe = $('#Safe').val();     

     $.ajax({
      url:'FilterReciptDetailsDailyClosing',
      method:'GET',
      data:{from:from,to:to,Safe:Safe},
      dataType:'json',
      success:function(data)
      {

       $('.DataRecipt').html(data.table_data);     
   
      }
     })
  


 }    
       
function DetailsTransferTo(){
  
     var from = $('#from').val();     
     var to = $('#to').val();     
     var Safe = $('#Safe').val();     

     $.ajax({
      url:'FilterTransferTotDetailsDailyClosing',
      method:'GET',
      data:{from:from,to:to,Safe:Safe},
      dataType:'json',
      success:function(data)
      {

       $('.DataTransferTo').html(data.table_data);     
   
      }
     })
  


 }    
           
function DetailsPayment(){
  
     var from = $('#from').val();     
     var to = $('#to').val();     
     var Safe = $('#Safe').val();     

     $.ajax({
      url:'FilterPaymenttDetailsDailyClosing',
      method:'GET',
      data:{from:from,to:to,Safe:Safe},
      dataType:'json',
      success:function(data)
      {

       $('.DataPayment').html(data.table_data);     
   
      }
     })
  


 }    
       
function DetailsPurch(){
  
     var from = $('#from').val();     
     var to = $('#to').val();     
     var Safe = $('#Safe').val();     

     $.ajax({
      url:'FilterPurchasesDetailsDailyClosing',
      method:'GET',
      data:{from:from,to:to,Safe:Safe},
      dataType:'json',
      success:function(data)
      {

       $('.DataPurchases').html(data.table_data);     
   
      }
     })
  


 }    
         
function DetailsRPurch(){
  
     var from = $('#from').val();     
     var to = $('#to').val();     
     var Safe = $('#Safe').val();     

     $.ajax({
      url:'FilterRPurchasesDetailsDailyClosing',
      method:'GET',
      data:{from:from,to:to,Safe:Safe},
      dataType:'json',
      success:function(data)
      {

       $('.DataRPurchases').html(data.table_data);     
   
      }
     })
  


 }    
    
function DetailsTransferFrom(){
  
     var from = $('#from').val();     
     var to = $('#to').val();     
     var Safe = $('#Safe').val();     

     $.ajax({
      url:'FilterTransferFromDetailsDailyClosing',
      method:'GET',
      data:{from:from,to:to,Safe:Safe},
      dataType:'json',
      success:function(data)
      {

       $('.DataTransferFrom').html(data.table_data);     
   
      }
     })
  


 }    
    
function DetailsImportCheck(){
  
     var from = $('#from').val();     
     var to = $('#to').val();     
     var Safe = $('#Safe').val();     

     $.ajax({
      url:'FilterImportChecksDetailsDailyClosing',
      method:'GET',
      data:{from:from,to:to,Safe:Safe},
      dataType:'json',
      success:function(data)
      {

       $('.DataImport').html(data.table_data);     
   
      }
     })
  


 }    
    
function DetailsSetllement3agz(){
  
     var from = $('#from').val();     
     var to = $('#to').val();     
     var Safe = $('#Safe').val();     

     $.ajax({
      url:'FilterSettlement3agzDetailsDailyClosing',
      method:'GET',
      data:{from:from,to:to,Safe:Safe},
      dataType:'json',
      success:function(data)
      {

       $('.DataSettlement3').html(data.table_data);     
   
      }
     })
  


 }    
    
function DetailsWaslAmana(){
  
     var from = $('#from').val();     
     var to = $('#to').val();     
     var Safe = $('#Safe').val();     

     $.ajax({
      url:'FilterWaslDetailsDailyClosing',
      method:'GET',
      data:{from:from,to:to,Safe:Safe},
      dataType:'json',
      success:function(data)
      {

       $('.DataWasl').html(data.table_data);     
   
      }
     })
  


 }    
    
function DetailsSalesPetrol(){
  
     var from = $('#from').val();     
     var to = $('#to').val();     
     var Safe = $('#Safe').val();     

     $.ajax({
      url:'FilterPetrolDetailsDailyClosing',
      method:'GET',
      data:{from:from,to:to,Safe:Safe},
      dataType:'json',
      success:function(data)
      {

       $('.DataPetrol').html(data.table_data);     
   
      }
     })
  


 }    
    
    
function DetailsshippingTicket(){
  
     var from = $('#from').val();     
     var to = $('#to').val();     
     var Safe = $('#Safe').val();     

     $.ajax({
      url:'FilterShippingDetailsDailyClosing',
      method:'GET',
      data:{from:from,to:to,Safe:Safe},
      dataType:'json',
      success:function(data)
      {

       $('.DataTicket').html(data.table_data);     
   
      }
     })
  


 }    
    
    
function DetailsMaintaince(){
  
     var from = $('#from').val();     
     var to = $('#to').val();     
     var Safe = $('#Safe').val();     

     $.ajax({
      url:'FilterMaintainceDetailsDailyClosing',
      method:'GET',
      data:{from:from,to:to,Safe:Safe},
      dataType:'json',
      success:function(data)
      {

       $('.DataMaintaince').html(data.table_data);     
   
      }
     })
  


 }    


function DetailsExportCheck(){
  
     var from = $('#from').val();     
     var to = $('#to').val();     
     var Safe = $('#Safe').val();     

     $.ajax({
      url:'FilterExportChecksDetailsDailyClosing',
      method:'GET',
      data:{from:from,to:to,Safe:Safe},
      dataType:'json',
      success:function(data)
      {

       $('.DataExportChecks').html(data.table_data);     
   
      }
     })
  


 }    

    function DetailsSetllementZyada(){
  
     var from = $('#from').val();     
     var to = $('#to').val();     
     var Safe = $('#Safe').val();     

     $.ajax({
      url:'FilterSettlementZyadaDetailsDailyClosing',
      method:'GET',
      data:{from:from,to:to,Safe:Safe},
      dataType:'json',
      success:function(data)
      {

       $('.DataSettlementZyada').html(data.table_data);     
   
      }
     })
  


 }    

    function DetailsRMaintaince(){
  
     var from = $('#from').val();     
     var to = $('#to').val();     
     var Safe = $('#Safe').val();     

     $.ajax({
      url:'FilterRMaintainceDetailsDailyClosing',
      method:'GET',
      data:{from:from,to:to,Safe:Safe},
      dataType:'json',
      success:function(data)
      {

       $('.DataRMaintaince').html(data.table_data);     
   
      }
     })
  


 }    

    function DetailsSalary(){
  
     var from = $('#from').val();     
     var to = $('#to').val();     
     var Safe = $('#Safe').val();     

     $.ajax({
      url:'FilterSalaryDetailsDailyClosing',
      method:'GET',
      data:{from:from,to:to,Safe:Safe},
      dataType:'json',
      success:function(data)
      {

       $('.DataSalary').html(data.table_data);     
   
      }
     })
  


 }    

    function DetailsBorrow(){
  
     var from = $('#from').val();     
     var to = $('#to').val();     
     var Safe = $('#Safe').val();     

     $.ajax({
      url:'FilterBorrowDetailsDailyClosing',
      method:'GET',
      data:{from:from,to:to,Safe:Safe},
      dataType:'json',
      success:function(data)
      {

       $('.DataBorrow').html(data.table_data);     
   
      }
     })
  


 }    

    function DetailsLoan(){
  
     var from = $('#from').val();     
     var to = $('#to').val();     
     var Safe = $('#Safe').val();     

     $.ajax({
      url:'FilterLoanDetailsDailyClosing',
      method:'GET',
      data:{from:from,to:to,Safe:Safe},
      dataType:'json',
      success:function(data)
      {

       $('.DataLoan').html(data.table_data);     
   
      }
     })
  


 }    

    function DetailsExchange(){
  
     var from = $('#from').val();     
     var to = $('#to').val();     
     var Safe = $('#Safe').val();     

     $.ajax({
      url:'FilterExchangeDetailsDailyClosing',
      method:'GET',
      data:{from:from,to:to,Safe:Safe},
      dataType:'json',
      success:function(data)
      {

       $('.DataExchange').html(data.table_data);     
   
      }
     })
  


 }    
    
    
    
    function DetailsAssets(){
  
     var from = $('#from').val();     
     var to = $('#to').val();     
     var Safe = $('#Safe').val();     

     $.ajax({
      url:'FilterAssetsDetailsDailyClosing',
      method:'GET',
      data:{from:from,to:to,Safe:Safe},
      dataType:'json',
      success:function(data)
      {

       $('.DataAssets').html(data.table_data);     
   
      }
     })
  


 }    
    
    

</script>


<!-- Print Modal -->

<script>
function ModalPrint(){
    
    $('#js-page-content').addClass('no-print');
     $('#AsoulDet').removeClass('no-print');
     $('#KhsoumDet').removeClass('no-print');
     $('#HkookDet').removeClass('no-print');
    window.print();
    
}
    function ModalNoPrint(){
    $('#js-page-content').removeClass('no-print');
    $('#AsoulDet').addClass('no-print');
    $('#KhsoumDet').addClass('no-print');
    $('#HkookDet').addClass('no-print');
    window.print();
    
}
</script>
	<style>
	@media  print {

		.modal-content * {
			visibility: visible;
			overflow: visible;
		}
		.main-page * {
			display: none;
		}
		.modal {
			position: absolute;
			left: 0;
			top: 0;
			margin: 0;
			padding: 0;
			min-height: 550px;
			visibility: visible;
			overflow: visible !important; /* Remove scrollbar for printing. */
		}
		.modal-dialog {
			visibility: visible !important;
			overflow: visible !important; /* Remove scrollbar for printing. */
		}
	}
	</style>
<?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/Reports/DailyClosing.blade.php ENDPATH**/ ?>