/
home
/
sjslayjy
/
public_html
/
olddevlok
/
storage
/
framework
/
views
/
Upload File
HOME
<?php $__env->startSection('title','Party Invoice Ledger'); ?> <?php $__env->startSection('style'); ?> <?php echo e(Html::style("assets/css/bootstrap-datepicker3.min.css")); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="main-content"> <div class="main-content-inner"> <div class="breadcrumbs ace-save-state" id="breadcrumbs"> <ul class="breadcrumb"> <li> <i class="ace-icon fa fa-home home-icon"></i> <a href="#"><?php echo e(__('messages.Home')); ?></a> </li> <li class="active"> Party Invoice Ledger</li> </ul> </div> <div class="page-content"> <?php if(session('success')): ?> <div class="alert alert-success"> <?php echo e(session('success')); ?> </div> <?php endif; ?> <?php if(session('error')): ?> <div class="alert alert-danger"> <?php echo e(session('error')); ?> </div> <?php endif; ?> <div class="row"> <div class="col-xs-12"> <h3 class="header smaller lighter blue"> Party Invoice Ledger</h3> <form action="" method="POST" role="form" id="FilterForm"> <div class="row"> <?php echo e(csrf_field()); ?> <div class="col-md-3"> <div class="form-group"> <label for="retailer_id"> Retailer</label> <select class="form-control select2" name="retailer_id" id="retailer_id" onchange="filter()"> <option value=""> Select Retailer</option> <?php $__currentLoopData = $retailers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $retailer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($retailer['id']); ?>" <?php echo e(isset($retailer_id) && $retailer_id==$retailer['id'] ? "selected":""); ?>><?php echo e($retailer['name']); ?> (<?php echo e($retailer['address']); ?>)</option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <?php if($errors->has('retailer_id')): ?> <span class="label label-danger"><?php echo e($errors->first('retailer_id')); ?></span> <?php endif; ?> </div> </div> </form> </div> </div> <div class="clearfix"> <div class="pull-right tableTools-container"> </div> </div> <div class="table-header"> Party Invoice Ledger </div> <?php if(isset($ledgers)): ?> <div class="table-responsive"> <div class="dataTables_borderWrap"> <table class="table table-striped table-bordered table-hover"> <thead> <tr> <th>Retailer</th> <th>Particular</th> <th>Against</th> <th>credit</th> <th>Debit</th> <th>Balance</th> <th>Date</th> </tr> </thead> <tbody> <?php $__currentLoopData = $ledgers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ledger): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <th><?php echo e(getModelById('Retailer',$ledger->retailer_id)->name); ?> (<?php echo e(getModelById('Retailer',$ledger->retailer_id)->address); ?>)</th> <th><?php echo e($ledger->particular); ?></th> <th><?php echo e($ledger->against); ?></th> <th><?php echo e($ledger->credit); ?></th> <th><?php echo e($ledger->debit); ?></th> <th><?php echo e($ledger->balance); ?></th> <th><?php echo e(date('d/m/Y',strtotime($ledger->created_at))); ?></th> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> </div> <?php endif; ?> </div> <!-- /.page-content --> </div> </div><!-- /.main-content --> <?php $__env->startSection('script'); ?> <?php echo e(Html::script("assets/js/jquery.dataTables.min.js")); ?> <?php echo e(Html::script("assets/js/jquery.dataTables.bootstrap.min.js")); ?> <?php echo e(Html::script("assets/js/dataTables.buttons.min.js")); ?> <?php echo e(Html::script("assets/js/buttons.flash.min.js")); ?> <?php echo e(Html::script("assets/js/buttons.html5.min.js")); ?> <?php echo e(Html::script("assets/js/buttons.print.min.js")); ?> <?php echo e(Html::script("assets/js/buttons.colVis.min.js")); ?> <?php echo e(Html::script("assets/js/dataTables.select.min.js")); ?> <?php echo e(Html::script("assets/js/ace-elements.min.js")); ?> <?php echo e(Html::script("assets/js/ace.min.js")); ?> <?php echo e(Html::script("assets/js/bootstrap-datepicker.min.js")); ?> <script type="text/javascript"> jQuery(function($) { $('.date-picker').datepicker({ autoclose: true, todayHighlight: true }) .next().on(ace.click_event, function(){ $(this).prev().focus(); }); }) </script> <script type="text/javascript"> function filter(){ $('#invoice_id').val(''); $('#FilterForm').submit(); } </script> <?php $__env->stopSection(); ?> <?php $__env->stopSection(); ?> <?php echo $__env->make('dashboard.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/pmmsanvp/public_html/srtdev/resources/views/dashboard/invoice/party-invoice-ledger.blade.php ENDPATH**/ ?>