/
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 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 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"> <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> <div class="col-md-3"> <div class="form-group"> <label for="retailer_id"> Session </label> <select class="form-control select2" name="current_session" id="current_session" > <option value=""> Select Session </option> <?php $__currentLoopData = $allsessions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $mysession): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($mysession->session); ?>" <?php echo e(isset($current_session) && $current_session==$mysession->session ? "selected":""); ?>><?php echo e($mysession->session); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div> <div class="col-md-3"> <div class="form-group"> <input type="submit" name="submit" class="btn btn-success" /> </div> </div> </form> </div> </div> <?php if(isset($ledgers)): ?> <div class="row"> <div class="col-xs-6"> <div class="widget-box ui-sortable-handle" id="widget-box-5"> <div class="widget-header"> <h5 class="widget-title smaller">Retailer Information</h5> </div> <div class="widget-body"> <div style="padding: 5px;"> <h4><?php echo e($current_retailer->name); ?></h4> <p><?php echo e($current_retailer->address); ?></p> </div> </div> </div> </div> </div> <div class="clearfix"> <div class="pull-right tableTools-container"> <a class="dt-button buttons-print btn btn-white btn-primary btn-bold" tabindex="0" aria-controls="dynamic-table"><span><i class="fa fa-print bigger-110 grey"></i> <span class="hidden">Print</span></span></a> </div> </div> <div class="table-header"> Party Ledger </div> <div class="table-responsive"> <div class="dataTables_borderWrap"> <table class="table table-striped table-bordered table-hover"> <thead> <tr> <th>Date</th> <th>Particular</th> <th>voucher Type</th> <th>voucher No</th> <th width="100">Debit</th> <th width="100">Credit</th> <th width="100">Balance</th> </tr> </thead> <tbody> <tr> <td><?php echo e(date('d/m/Y',strtotime($start))); ?></td> <td colspan="5">Opening Balance</td> <td><?php if($opening_balance < 0): ?> <?php echo e(abs($opening_balance)); ?> Cr <?php else: ?> <?php echo e($opening_balance); ?> Dr <?php endif; ?></td> </tr> <?php $__currentLoopData = $ledgers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ledger): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e(date('d/m/Y',strtotime($ledger->created_at))); ?></td> <td><?php echo e($ledger->particular); ?></td> <td><?php echo e($ledger->type); ?></td> <td><?php echo e($ledger->against); ?></td> <td width="100"><?php if($ledger->debit != 0): ?><?php echo e($ledger->debit); ?> <?php endif; ?></td> <td width="100"><?php if($ledger->credit != 0): ?><?php echo e($ledger->credit); ?> <?php endif; ?></td> <td width="100"><?php if($ledger->balance < 0): ?> <?php echo e(abs($ledger->balance)); ?> Cr <?php else: ?> <?php echo e($ledger->balance); ?> Dr <?php endif; ?></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> </div> <?php endif; ?> <div class="row"> <div class="col-xs-12"> <br> <br> <br> <br> <br> </div> </div> </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/ledgers/party-ledger.blade.php ENDPATH**/ ?>