PATH:
home
/
centosnipponia
/
public_html
/
apptt
/
resources
/
views
@extends('adminlte::page') @section('title', 'Apps - Trade And Traffic') @section('content_header') <a href="{{ URL::previous() }}">Go Back</a> <h1>Trade and Traffic Reservations</h1> @stop @section('plugins.Datatables', true) @section('content') <p>Welcome to Trade and Traffic Apps.</p> <p> <a href="/who_reserved_what?serial=false">Spare Parts only </a> or <a href="/who_reserved_what?serial=true">Scooters only </a></p> <table id="example" class="display" style="width:100%"> <thead> <tr> <th>Model (with variants)</th> <th>Qty</th> <th>Reservation Dealer</th> <th>Sale Order</th> <th>Confirmation Date</th> </tr> </thead> <tbody> {{-------------------------------------------------------------------------------------------------------}} @php // var_dump($uii); $total=0; foreach($uii as $result) { if(isset($result['partner_id']) && !is_bool($result['partner_id'])){ $total+=$result['product_uom_qty']; echo '<tr> <td>'.$result['product_id'][1].'</td><td>'.$result['product_uom_qty'].'</td><td>'.$result['partner_id'][1].'</td><td>'.$result['origin'].'</td><td>'.date('Y-m-d', strtotime($result['create_date'])).'</td></tr>'; } } @endphp {{-------------------------------------------------------------------------------------------------------}} </tbody> <tfoot> <tr> <th style="text-align:right">Total:</th> <th>@php echo $total; @endphp</th> <th></th> <th></th> <th></th> </tr> </tfoot> </table> @stop @section('css') <link rel="stylesheet" href="/css/admin_custom.css"> <link rel="stylesheet" href="https://cdn.datatables.net/1.10.21/css/jquery.dataTables.min.css"> @stop @section('js') <script> {{------- $('#example').DataTable( { "lengthMenu": [ 10, 25, 50, 75, 500 ] "footerCallback": function ( row, data, start, end, display ) { var api = this.api(), data; // Remove the formatting to get integer data for summation var intVal = function ( i ) { return typeof i === 'string' ? i.replace(/[\$,]/g, '')*1 : typeof i === 'number' ? i : 0; }; // Total over all pages total = api .column( 1 ) .data() .reduce( function (a, b) { return intVal(a) + intVal(b); }, 0 ); // Total over this page pageTotal = api .column( 1, { page: 'current'} ) .data() .reduce( function (a, b) { return intVal(a) + intVal(b); }, 0 ); // Update footer $( api.column( 1 ).footer() ).html( 'Total:'+pageTotal +' ( '+ total +')' ); } } ); ------------}} $(document).ready(function() { $('#example').dataTable( { "lengthMenu": [ [10, 25,100, 500, -1], [10, 25,100, 500, "All"] ] } ); } ); </script> @stop
[+]
..
[-] aged_consign_models_cust.blade.php
[edit]
[-] aged_consignement_models.blade.php
[edit]
[+]
auth
[-] availability_per_catalog.blade.php
[edit]
[-] bulk_contact.blade.php
[edit]
[-] current_dealer.blade.php
[edit]
[+]
current_dealer
[-] current_stock.blade.php
[edit]
[-] current_stock.blade.php2103
[edit]
[-] current_stock.blade.php211109
[edit]
[-] current_stock_model.blade.php
[edit]
[-] dealer_list.blade.php
[edit]
[-] delivery_ready.blade.php
[edit]
[-] delpickpdf.blade.php
[edit]
[-] fetch_product_image.blade.php
[edit]
[-] home.blade.php
[edit]
[-] in_consignment.blade.php
[edit]
[+]
layouts
[-] models_showcase.blade.php
[edit]
[-] non_deliverable_stock.blade.php
[edit]
[-] odoo_partssnel.blade.php
[edit]
[-] odoo_stock.blade.php
[edit]
[-] pick_del_form signature.blade.php
[edit]
[-] pick_del_form.blade.php
[edit]
[-] pick_del_form_edit.blade.php
[edit]
[-] pick_del_form_finished_list.blade.php
[edit]
[-] pick_del_form_list.blade.php
[edit]
[-] prepare_is_spare_part_for.blade.php
[edit]
[-] quotations_pending.blade.php
[edit]
[-] revenue_target.blade-old.php
[edit]
[-] revenue_target.blade.php
[edit]
[-] sales_targets_input.blade.php
[edit]
[-] signaturePad.blade.php
[edit]
[-] simple_preparation.blade.php
[edit]
[-] snelstart_old_invoices.blade.php
[edit]
[-] sold.blade.php
[edit]
[-] speedversion_change.blade.php
[edit]
[-] statbe.blade.php
[edit]
[-] statnl.blade.php
[edit]
[-] statnl.blade.php-OLD
[edit]
[-] tracking_all.blade.php
[edit]
[-] transfer_edit_form.blade.php
[edit]
[-] units_target.blade.php
[edit]
[-] user_create_form.blade.php
[edit]
[-] user_edit_form.blade.php
[edit]
[-] user_list.blade.php
[edit]
[-] user_password_reset.blade.php
[edit]
[-] user_profile_edit.blade.php
[edit]
[-] welcome.blade.php
[edit]
[-] who_demands_what.blade.php
[edit]
[-] who_reserved_what.blade.php
[edit]
[-] .htaccess.disabled
[edit]