From 9ca364462599f045485956f47e458aa8a8402e23 Mon Sep 17 00:00:00 2001 From: Deon George Date: Wed, 22 Jul 2020 14:49:39 +1000 Subject: [PATCH] Added account to invoice list --- .../backend/adminlte/widgets/invoice.blade.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/resources/views/theme/backend/adminlte/widgets/invoice.blade.php b/resources/views/theme/backend/adminlte/widgets/invoice.blade.php index 26523c2..f07c1aa 100644 --- a/resources/views/theme/backend/adminlte/widgets/invoice.blade.php +++ b/resources/views/theme/backend/adminlte/widgets/invoice.blade.php @@ -2,6 +2,7 @@ + @@ -14,6 +15,7 @@ @foreach ($x as $oo) + @@ -37,7 +39,16 @@ $(document).ready(function() { $('#{{ $widget_invoice_name ?? 'widget-invoice'}}').DataTable({ responsive: true, - order: [1, 'desc'] + order: [[0,'asc'],[3,'desc']], + rowGroup: { + dataSrc: 0, + }, + columnDefs: [ + { + targets: [0], + visible: false, + } + ], }); $('#{{ $widget_invoice_name ?? 'widget-invoice'}} tbody').on('click','tr', function () {
Account # Issued Due
{{ $oo->account->name }} {{ $oo->id }} {{ $oo->date_orig->format('Y-m-d') }} {{ $oo->due_date->format('Y-m-d') }}