<?php $__env->startSection('page_title'); ?>
Voucher
<?php $__env->stopSection(); ?>

<?php $__env->startSection('page_header_title'); ?>
Manage Voucher
<?php $__env->stopSection(); ?>



<?php $__env->startSection('page_body'); ?>
<?php echo e(Breadcrumbs::render('voucher')); ?>

<div class="row ">
          
          <div class="col-sm-12 col-md-3 col-lg-3">
            <strong>From <small style="color: red;">*</small></strong>
              <input type="date" name="date" class="form-control form-control-sm" id="from">
          </div>

            <div class="col-sm-12 col-md-3 col-lg-3">
              <strong>To <small style="color: red;">*</small></strong>
              <input type="date" name="date" placeholder="" class="form-control form-control-sm" id="to">
          </div>



          <div class="col-sm-12 col-md-5 col-lg-5">
            <strong>Project</strong>
              <select class="form-control form-control-sm " id="filter_project"  name="project">
                <option value="<?php echo e(Crypt::encrypt(0)); ?>">Select Project</option>
                <?php $__currentLoopData = $branch; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rows): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                  <option <?php if(isset($project)): ?> selected <?php endif; ?> value="<?php echo e(Crypt::encrypt($rows->id)); ?>"><?php echo e($rows->name); ?></option>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
              </select>
          </div>

          <div class="col-sm-12 col-md-1 col-lg-1">
              <button onclick="voucherFilters(event)"  class="btn btn-sm btn-primary mt-5">Search</button>
          </div>
        </div>
<div class="row row-cards row-deck mt-4">

  <div class="col-12">
    <div class="card">
         <?php echo Form::open(array('route' =>    'approve.multiple.vouchers')); ?>


      <div class="card-header">


       <?php if(Auth::user()->hasAnyPermission(['All','Create Voucher'])): ?>

       <button  onclick="event.preventDefault();" class="float-right btn btn-sm btn-outline-primary" data-toggle="modal" data-target="#md_add_voucher"><i class="fa fa-plus"></i></button> &nbsp;&nbsp;
       <?php endif; ?>

       <h3 class="card-title">Create Voucher</h3> &nbsp; &nbsp;

       <button  class="float-right btn btn-sm btn-outline-primary approve_button" type="submit" disabled><i class="fa fa-save"></i> Approve Selected Vouchers</button> &nbsp;&nbsp;
     </div>


     <div class="card-status card-status-left bg-blue"></div>
     <div class="table-responsive table-height">
      <table class="table table-hover table-sm table-outline table-vcenter text-nowrap card-table cls_datatable">
        <thead>
          <tr>
            <th>#</th>
            <td>Option</td>
            <th>Date</th>
            <th>Clearance Date</th>
            <th>Approve / Reject</th>

            <th>Temp Voucher#</th>
            <th><?php echo e(ucwords(str_replace('_',' ',EF::branchWhiteLabel()['module']))); ?></th>
            <th>Type</th>
            <th>Status</th>
            <th>Payment Detail</th>
            <th>debit</th>
            <th>credit</th>
            <th>Action</th>
          </tr>
        </thead>
        <tbody id="show_vouchers">
            <?php echo $view_voucher; ?>

       </tbody>
     </table>
   </div>
     <?php echo Form::close(); ?>


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

<?php $__env->startSection('page_modal'); ?>
<?php echo $__env->make('voucher.modals.approve_voucher', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

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

<?php $__env->startSection('page_script'); ?>
<?php echo $__env->make('scripts.voucher', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

<?php echo $__env->make('scripts.account', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php echo $__env->make('voucher.modals.add_voucher', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php echo $__env->make('voucher.modals.update_voucher', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

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


<?php echo $__env->make('layouts.dashboard', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/skylite/resources/views/voucher/manage_voucher.blade.php ENDPATH**/ ?>