<?php $__env->startSection('page_title'); ?>
View Ledger

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

<?php $__env->startSection('page_header_title'); ?>
view Ledger
<?php $__env->stopSection(); ?>
<?php $__env->startSection('page_body'); ?>

<?php ($breadcrumb = ['head_id' => Crypt::encrypt($subhead->head_id), 'head_name' => $subhead->head->name, 'subhead_id' => Crypt::encrypt($subhead->id), 'subhead_name' => $subhead->name]); ?>

<?php echo e(Breadcrumbs::render('ledger',$breadcrumb)); ?>


<div class="row row-cards row-deck" >
  <div class="col-12">
    <div class="card">
     <div class="card-header">
      


      <div class="col-md-3">
         <?php if(Auth::user()->hasAnyPermission(['All','View Ledger Report'])): ?>

            <button style="float: left;"  class="btn btn-sm btn-outline-primary" data-toggle="modal" data-target="#md_ledger_report" ><i class="fa fa-print"></i></button> 
          <?php endif; ?>
          <h3 style="float: left; margin-left: 4%;" class="card-title">View Ledger</h3>
      </div>

      <div class="col-md-5"></div>

      <div class="col-md-3" style="margin-left: 90px;">
            <?php ($datatable_key = Crypt::encrypt('Ledger')); ?>
            <select onchange="showParameterBranchWiseDataTable(event,this,'<?php echo e(Crypt::encrypt($account_id)); ?>','<?php echo e($datatable_key); ?>','show_ledgers');" name="branch" class="form-control form-control-sm">
              <option value="<?php echo e(Crypt::encrypt(0)); ?>">Select <?php echo e(ucwords(str_replace('_',' ',EF::branchWhiteLabel()['module']))); ?></option>

              <?php $__currentLoopData = $branch; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rows): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <option <?php if(false): ?> selected <?php endif; ?> value="<?php echo e(Crypt::encrypt($rows->id)); ?>"><?php echo e($rows->name); ?> (<?php echo e($rows->code); ?>)</option>
              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </select>
            
        </div>

    </div>

    <div class="card-status card-status-left bg-blue"></div>
    <div class="table-responsive" >
      <table class="table table-hover table-sm table-outline table-vcenter text-nowrap card-table cls_datatable">
        <thead>
          <tr>

            <th>#</th>
            <th>Date</th>
            <th>Voucher#</th>
            <th>Name</th>
          <th>Booking Detail</th>

            <th>Narration</th>
            <th>Mode</th>
            <th>Drawn</th>
            <th>Instrument / Cheque #</th>
            <th>Instrument Date</th>




            
            <th>Status</th>
            <th>Debit</th>
            <th>Credit</th>
            <th>Balance</th>
          </tr>
        </thead>
      
        <tbody id="show_ledgers">

        <?php echo $view_ledger; ?>


        </tbody>

     </table>
   </div>
 </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 echo $__env->make('reports.modals.ledger_report', \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 $__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 $__env->stopSection(); ?>


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