/
home
/
sjslayjy
/
public_html
/
olddevlok
/
storage
/
framework
/
views
/
Upload File
HOME
<?php $__env->startSection('title','Company 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"> Company 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"> Company 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="product_company_id"> Poduct Company</label> <select class="form-control select2" name="product_company_id" id="product_company_id" onchange="filter()"> <option value=""> Select Poduct Company</option> <?php $__currentLoopData = $product_companies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product_company): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($product_company['id']); ?>" <?php echo e(isset($product_company_id) && $product_company_id==$product_company['id'] ? "selected":""); ?>><?php echo e($product_company['name']); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <?php if($errors->has('product_company_id')): ?> <span class="label label-danger"><?php echo e($errors->first('product_company_id')); ?></span> <?php endif; ?> </div> </div> <div class="col-md-3"> <div class="form-group"> <label for="dealer_id"> Dealer</label> <select class="form-control select2" name="dealer_id" id="dealer_id" onchange="filter()"> <option value=""> Select Dealer</option> <?php $__currentLoopData = $dealers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $dealer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($dealer['id']); ?>" <?php echo e(isset($dealer_id) && $dealer_id==$dealer['id'] ? "selected":""); ?>><?php echo e($dealer['name']); ?>(<?php echo e($dealer['address']); ?>)</option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <?php if($errors->has('dealer_id')): ?> <span class="label label-danger"><?php echo e($errors->first('dealer_id')); ?></span> <?php endif; ?> </div> </div> <div class="col-md-2"> <div class="form-group"> <label for="date">From Date</label> <input type="text" class="form-control date-picker" name="from_date" id="" placeholder="Date" readonly="readonly" value="<?php echo e(isset($from_date) ? $from_date : ""); ?>"> <?php if($errors->has('from_date')): ?> <span class="label label-danger"><?php echo e($errors->first('from_date')); ?></span> <?php endif; ?> </div> </div> <div class="col-md-2"> <div class="form-group"> <label for="date">To Date</label> <input type="text" class="form-control date-picker" name="to_date" id="" placeholder="Date" readonly="readonly" value="<?php echo e(isset($to_date) ? $to_date : ""); ?>"> <?php if($errors->has('to_date')): ?> <span class="label label-danger"><?php echo e($errors->first('to_date')); ?></span> <?php endif; ?> </div> </div> <div class="col-md-2"> <div class="form-group"> <button type="submit" class="btn btn-primary">Submit</button> </div> </div> </form> </div> </div> <div class="clearfix"> <div class="pull-right tableTools-container"> </div> </div> <div class="table-header"> Company 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>Date</th> <th>Product Company</th> <th>Dealer</th> <th>Particular</th> <th>Debit</th> <th>Credit</th> <th>Balance</th> </tr> </thead> <tbody> <?php $__currentLoopData = $ledgers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ledger): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <th><?php echo e(date('d/m/Y',strtotime($ledger->created_at))); ?></th> <th><?php echo e(getModelById('ProductCompany',$ledger->product_company_id)->name); ?></th> <th><?php echo e(getModelById('Dealer',$ledger->dealer_id)->name); ?> (<?php echo e(getModelById('Dealer',$ledger->dealer_id)->address1); ?>)</th> <th><?php echo e($ledger->particular); ?></th> <th><?php echo e($ledger->debit); ?></th> <th><?php echo e($ledger->credit); ?></th> <th><?php echo e($ledger->balance); ?></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/srt/resources/views/dashboard/invoice/company-invoice-ledger.blade.php ENDPATH**/ ?>