/
home
/
sjslayjy
/
public_html
/
tabson_test
/
storage
/
framework
/
views
/
Upload File
HOME
<?php $__env->startSection('title','Delivery Transactions'); ?> <?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">Delivery Transactions</li> </ul> </div> <div class="page-content"> <div class="row"> <div class="col-xs-12"> <h3 class="header smaller lighter blue">List Of Delivery Transactions</h3> <form method="GET" action="<?php echo e(route('get.delivery.challan')); ?>"> <div class="form-group mb-3"> <label for="warehouse">Select Warehouse:</label> <select name="warehouse" id="warehouse" class="form-control" style="width: 300px;" onchange="this.form.submit()"> <option value=""> -- Select Warehouse --</option> <?php $__currentLoopData = $warehouses; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $warehouse): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($warehouse); ?>" <?php echo e($warehouse == $current_warehouse ? 'selected' : ''); ?>> <?php echo e($warehouse); ?> </option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </form> <div class="clearfix"> <div class="pull-right tableTools-container"> </div> </div> <div> <div class="row"> <div class="col-lg-12"> <div class="table-responsive"> <table class="table table-striped table-bordered table-hover table myTable"> <thead> <tr> <th> Transaction No </th> <th> Old Transaction No </th> <th> Transaction Date </th> <th> Department ID </th> <th> Department Name </th> <th> Status </th> <th> action </th> </tr> </thead> <tbody id="challan_list"> <?php $__currentLoopData = $all_challan; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $challan): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td class="font-weight-medium"><?php echo e($challan->delivery_challan_no); ?></td> <td class="font-weight-medium"><?php echo e($challan->delivery_challan_no_old ?? '---'); ?></td> <td><?php echo e($challan->created_at); ?></td> <td><?php echo e($challan->department_id); ?></td> <td><?php echo e($challan->department_name ?? '---'); ?></td> <td><?php echo e($challan->status); ?></td> <td><a target="_blank" href="<?php echo e(url('circle-store/print-challan/'.$challan->id.'/type/'.$challan->type)); ?>">Print Delivery Challan</a></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> </div> </div> </div> </div> </div><!-- /.page-content --> </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")); ?> <script type="text/javascript"> jQuery(function($) { //initiate dataTables plugin var myTable = $('.myTable').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') }); }); function get_spare_of_warehouse(t) { var warehouse = $(t).val(); console.log('Warehouse is', warehouse); var url = window.location.origin+'/circle-store/delivery-challan/?circle='+warehouse; window.location.replace(url); } </script> <script> $(document).ready(function() { $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) { let target = $(e.target).attr("href"); // e.g. #repaired $('.tab-pane').removeClass('show active'); // reset $(target).addClass('show active'); // set correct }); }); </script> <script> $(document).ready(function() { // Initialize Select2 with custom placeholder and no cross sign $('.select2').select2({ placeholder: 'Search Warehouses', // Custom placeholder text allowClear: false, // Remove the cross (clear) sign language: { noResults: function() { return '<span class="no-results">No results found!</span>'; } }, escapeMarkup: function (markup) { return markup; // Allows HTML markup to be rendered } }); }); </script> <script> $(document).ready(function () { $('#myTab a[href="#fresh"]').tab('show'); // Force activate Fresh tab }); </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/tabson/resources/views/dashboard/stock/all-delivery-challan.blade.php ENDPATH**/ ?>