/
home
/
sjslayjy
/
public_html
/
olddevlok
/
storage
/
framework
/
views
/
Upload File
HOME
<?php $__env->startSection('title','Product-Loading'); ?> <?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"> <?php echo e(__('messages.ProductLoading')); ?></li> </ul> </div> <div class="page-content"> <h3 class="header smaller lighter blue"> <?php echo e(__('messages.ProductLoading')); ?></h3> <div class="row"> <div class="col-xs-12"> <form action="" method="POST" role="form"> <div class="row"> <?php echo e(csrf_field()); ?> <div class="col-md-3"> <div class="form-group"> <label for="master_rake_id"> <?php echo e(__('messages.masterrake')); ?></label> <select class="form-control select2" name="master_rake_id" id="master_rake_id"> <option value=""> <?php echo e(__('messages.SelectMasterRake')); ?></option> <?php $__currentLoopData = $master_rakes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $master_rake): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($master_rake->id); ?>" <?php echo e(isset($master_rake_id) && $master_rake_id==$master_rake->id ? "selected":""); ?>><?php echo e($master_rake->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <?php if($errors->has('master_rake_id')): ?> <span class="label label-danger"><?php echo e($errors->first('master_rake_id')); ?></span> <?php endif; ?> </div> </div> <div class="col-md-3"> <div class="form-group"> <button type="submit" class="btn btn-primary">Submit</button> </div> </div> </div> </form> </div> </div> <div class="row"> <div class="col-xs-12"> <div class="clearfix"> <div class="pull-right tableTools-container"> </div> </div> <?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="table-header"> Results for "Latest Generated Product-Loading" <div class="widget-toolbar no-border"> <!-- <a class="btn btn-xs bigger btn-danger" href="<?php echo e(URL('/user/product-loading')); ?>"> <?php echo e(__('messages.generateNew')); ?> <i class="ace-icon fa fa-plus icon-on-right"></i> </a> --> <?php if(isset($master_rake_id)): ?> <a class="btn btn-xs bigger btn-danger" href="<?php echo e(URL('/user/export-product-loadings/'.$master_rake_id)); ?>"> Export <i class="fa fa-file-excel-o"></i> </a> <?php endif; ?> </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> Unloading Slip#</th> <th> <?php echo e(__('messages.Token')); ?>#</th> <th> <?php echo e(__('messages.ProductCompany')); ?> </th> <th> <?php echo e(__('messages.Wagon')); ?>#</th> <th> <?php echo e(__('messages.Product')); ?> </th> <th> <?php echo e(__('messages.Quantity')); ?></th> <th> <?php echo e(__('messages.Transporter')); ?></th> <th> <?php echo e(__('messages.Retailers')); ?></th> <th> <?php echo e(__('messages.Party')); ?><br/> <?php echo e(__('messages.Name')); ?> </th> <th> <?php echo e(__('messages.Truck')); ?>#</th> <th></th> </tr> </thead> <tbody> <?php if(isset($product_unloadings)): ?> <?php $__currentLoopData = $product_unloadings; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product_unloading): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr id="tr_<?php echo e($product_unloading->id); ?>"> <td><?php echo e($product_unloading->id); ?></td> <td><?php echo e($product_unloading->token_id); ?></td> <td><?php echo e($product_unloading->product_company_name); ?></td> <td><?php echo e($product_unloading->wagon_number); ?></td> <td><?php echo e($product_unloading->product_name); ?></td> <td><?php echo e($product_unloading->quantity); ?>//<?php echo e($product_unloading->unit_name); ?></td> <td><?php echo e($product_unloading->transporter_name); ?></td> <td> <?php if(!is_null($product_unloading->retailer_id)): ?> <?php echo e($product_unloading->retailer_name); ?> <?php endif; ?> </td> <td> <?php if($product_unloading->loading_slip_type ==1): ?> <?php echo e(getModelById('Dealer',$product_unloading->dealer_id)->name); ?> (<?php echo e(getModelById('Dealer',$product_unloading->dealer_id)->address1); ?>) <?php else: ?> <?php echo e(getModelById('Warehouse',$product_unloading->warehouse_id)->name); ?> <?php endif; ?> </td> <td><?php echo e($product_unloading->truck_number); ?></td> <td> <a href="/user/print-unloading-slip/<?php echo e($product_unloading->id); ?>" class="btn btn-xs btn-info" > <i class="ace-icon fa fa-print bigger-120"></i> </a> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </tbody> </table> </div> </div> </div> </div> </div> <!-- /.page-content --> </div> </div><!-- /.main-content --> <form action="" id="taxInvoiceForm" method="post"> <div class="modal fade" id="taxInvoiceModal"> <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"> <?php echo e(__('messages.Invoices')); ?> <?php echo e(__('messages.Details')); ?></h4> </div> <div class="modal-body"> <?php echo e(csrf_field()); ?> <input type="hidden" name="token_id" id="token_id"> <div class="row"> <div class="col-md-4"> <div class="form-group"> <label for="company_id">Company <?php echo e(__('messages.company')); ?></label> <select class="form-control select2" name="company_id" id="company_id" required="required"> <?php $__currentLoopData = $companies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $company): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($company->id); ?>"><?php echo e($company->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div> <div class="col-md-4"> <div class="form-group"> <label for="invoice_type_id"><?php echo e(__('messages.Invoices')); ?> <?php echo e(__('messages.Type')); ?></label> <select class="form-control select2" name="invoice_type_id" id="invoice_type_id" required="required"> <option value="">Select Invoice Type <?php echo e(__('messages.')); ?> <?php echo e(__('messages.')); ?> <?php echo e(__('messages.')); ?></option> <?php $__currentLoopData = $invoice_types; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $invoice_type): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($invoice_type->id); ?>"><?php echo e($invoice_type->invoice_type); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div> <div class="col-md-4"> <div class="form-group"> <label for="invoice_date"><?php echo e(__('messages.Invoices')); ?> <?php echo e(__('messages.Date')); ?></label> <input type="text" name="invoice_date" id="invoice_date" class="form-control date-picker" readonly="" value="<?php echo e(date('d/m/Y')); ?>" required="required"> </div> </div> <div class="clearfix"></div> <div class="col-md-4"> <div class="form-group"> <label for="eway_bill_no"><?php echo e(__('messages.eWayBillNumber')); ?></label> <input type="text" name="eway_bill_no" id="eway_bill_no" class="form-control" required="required"> </div> </div> <div class="col-md-4"> <div class="form-group"> <label for="invoice_remark"><?php echo e(__('messages.Invoices')); ?> <?php echo e(__('messages.Remark')); ?></label> <input type="text" name="invoice_remark" id="invoice_remark" class="form-control"> </div> </div> <div class="col-md-4"> <div class="form-group"> <label for="dispatched_through"> <?php echo e(__('messages.DispatchedThrough')); ?></label> <input type="text" name="dispatched_through" id="dispatched_through" class="form-control" placeholder="Dispatched Through"> </div> </div> <div class="clearfix"></div> <div class="col-md-4"> <div class="form-group"> <label for="destination"> <?php echo e(__('messages.Destination')); ?></label> <input type="text" name="destination" id="destination" class="form-control" placeholder="Enter Destination"> </div> </div> <div class="col-md-4"> <div class="form-group"> <label for="terms_of_delivery"> <?php echo e(__('messages.TermsOfDelivery')); ?> </label> <input type="text" name="terms_of_delivery" id="terms_of_delivery" class="form-control"> </div> </div> <div class="clearfix"></div> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> <button type="submit" class="btn btn-primary">Print <?php echo e(__('messages.')); ?></button> </div> </div> </div> </div> </form> <?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"> function printTaxInvoice(token_id,company_id){ $('#taxInvoiceModal').modal('toggle'); var action = "<?php echo e(URL('/')); ?>"+"/user/token/tax-invoice/"+token_id; $('#taxInvoiceForm').attr('action',action); $('#token_id').val(token_id); $('#company_id').val(company_id); } jQuery(function($) { //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: true, message: 'IManager', exportOptions: { columns: ':visible' } } ] } ); 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/pmmsanvp/public_html/srtdev/resources/views/dashboard/unloading/product-unloadings.blade.php ENDPATH**/ ?>