/
home
/
sjslayjy
/
public_html
/
olddevlok
/
storage
/
framework
/
views
/
Upload File
HOME
<?php $__env->startSection('title','Import Remit'); ?> <?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="#">Home</a> </li> <li class="active">Import Remit</li> </ul> </div> <div class="page-content"> <?php if(session()->has('message')): ?> <div class="alert alert-success"> <button type="button" class="close" data-dismiss="alert">×</button> <?php echo e(session()->get('message')); ?> </div> <?php endif; ?> <div class="row"> <div class="col-xs-12"> <h3 class="header smaller lighter blue">Import Remit</h3> <div class="clearfix"> <div class="pull-right tableTools-container"> </div> </div> <div class="table-header"> Results for "Latest imported remits" <div class="widget-toolbar no-border"> <a class="btn btn-xs bigger btn-danger dropdown-toggle" data-toggle="modal" href='#importRemitModal'> import <i class="ace-icon fa fa-plus icon-on-right"></i> </a> </div> </div> </div> </div> <div class="table-responsive"> <div class="dataTables_borderWrap"> <table id="dynamic-table" class="table table-striped table-bordered table-hover"> <thead> <tr> <th>#</th> <th>Date</th> <th>Dealer</th> <th>Lot</th> <th>Amount</th> <th>Chq No.</th> <th>Chq.Date</th> <th>Bank</th> </tr> </thead> <tbody> <?php $__currentLoopData = $remits; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $remit): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr id="tr_<?php echo e($remit->id); ?>"> <td><?php echo e($remit->id); ?></td> <td><?php echo e(date('d/m/Y',strtotime($remit->date))); ?></td> <?php if(getdealer($remit->dealer_code)->name): ?> <td><?php echo e(getdealer($remit->dealer_code)->name); ?></td> <?php else: ?> <td><b class="text text-danger"><?php echo e($remit->dealer_code); ?></b></td> <?php endif; ?> <td><?php echo e($remit->lot); ?></td> <td><?php echo e($remit->amount); ?></td> <td><?php echo e($remit->cheque_no); ?></td> <td><?php echo e($remit->cheque_date); ?></td> <td><?php echo e($remit->bank); ?></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> </div> </div> </div> </div> </div> <div class="modal fade" id="importRemitModal"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title">Import Remit</h4> </div> <div class="modal-body"> <form action="<?php echo e(URL('/import/remits')); ?>" enctype="multipart/form-data" method="post"> <div class="row"> <?php echo e(csrf_field()); ?> <div class="col-md-12"> <div class="form-group"> <label for="name">File</label> <input type="file" class="form-control" name="remit_file" id="remit_file"> </div> </div> </div> </div> <div class="modal-footer"> <a href="<?php echo e(url('/excel_formats/ImportRemit.xlsx')); ?>" class="btn btn-warning btn-rounded" style="margin-right: 270px;">Excel Format</a> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> <button type="submit" id="importRemitBtn" class="btn btn-primary">Submit</button> </div> </form> </div> </div> </div> <?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/mdtimepicker.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(); }); //initiate dataTables plugin var myTable = $('#dynamic-table').DataTable( { bAutoWidth: false, "aaSorting": [], } ); $.fn.dataTable.Buttons.defaults.dom.container.className = 'dt-buttons btn-overlap btn-group btn-overlap'; new $.fn.dataTable.Buttons( myTable, { buttons: [ { "extend": "colvis", "text": "<i class='fa fa-search bigger-110 blue'></i> <span class='hidden'>Show/hide columns</span>", "className": "btn btn-white btn-primary btn-bold", columns: ':not(:first):not(:last)' }, { "extend": "copy", "text": "<i class='fa fa-copy bigger-110 pink'></i> <span class='hidden'>Copy to clipboard</span>", "className": "btn btn-white btn-primary btn-bold" }, { "extend": "csv", "text": "<i class='fa fa-database bigger-110 orange'></i> <span class='hidden'>Export to CSV</span>", "className": "btn btn-white btn-primary btn-bold" }, { "extend": "excel", "text": "<i class='fa fa-file-excel-o bigger-110 green'></i> <span class='hidden'>Export to Excel</span>", "className": "btn btn-white btn-primary btn-bold" }, { "extend": "pdf", "text": "<i class='fa fa-file-pdf-o bigger-110 red'></i> <span class='hidden'>Export to PDF</span>", "className": "btn btn-white btn-primary btn-bold" }, { "extend": "print", "text": "<i class='fa fa-print bigger-110 grey'></i> <span class='hidden'>Print</span>", "className": "btn btn-white btn-primary btn-bold", autoPrint: false, message: 'This print was produced using the Print button for DataTables' } ] } ); myTable.buttons().container().appendTo( $('.tableTools-container') ); //style the message box var defaultCopyAction = myTable.button(1).action(); myTable.button(1).action(function (e, dt, button, config) { defaultCopyAction(e, dt, button, config); $('.dt-button-info').addClass('gritter-item-wrapper gritter-info gritter-center white'); }); var defaultColvisAction = myTable.button(0).action(); myTable.button(0).action(function (e, dt, button, config) { defaultColvisAction(e, dt, button, config); if($('.dt-button-collection > .dropdown-menu').length == 0) { $('.dt-button-collection') .wrapInner('<ul class="dropdown-menu dropdown-light dropdown-caret dropdown-caret" />') .find('a').attr('href', '#').wrap("<li />") } $('.dt-button-collection').appendTo('.tableTools-container .dt-buttons') }); }) </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/sjslayjy/public_html/devlok/resources/views/dashboard/import/import-remit.blade.php ENDPATH**/ ?>