From 87a4b946eeeb811a70f8593de51a582537b13d06 Mon Sep 17 00:00:00 2001 From: Deon George Date: Wed, 3 Jul 2024 12:30:36 +1000 Subject: [PATCH] Adding billing history - still WIP --- .../backend/adminlte/service/home.blade.php | 3 ++ .../service/widget/billinghistory.blade.php | 51 +++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 resources/views/theme/backend/adminlte/service/widget/billinghistory.blade.php diff --git a/resources/views/theme/backend/adminlte/service/home.blade.php b/resources/views/theme/backend/adminlte/service/home.blade.php index 2a7b0a9..b56c1e0 100644 --- a/resources/views/theme/backend/adminlte/service/home.blade.php +++ b/resources/views/theme/backend/adminlte/service/home.blade.php @@ -88,6 +88,9 @@ Email. @can('wholesaler') +
+ @include('service.widget.billinghistory',['o'=>$o]) +
@if(($x=$o->changes()->where('service__change.active',TRUE)->where('complete',FALSE)->get()->pop())) @include('service.widget.internal',['o'=>$o,'p'=>$x]) diff --git a/resources/views/theme/backend/adminlte/service/widget/billinghistory.blade.php b/resources/views/theme/backend/adminlte/service/widget/billinghistory.blade.php new file mode 100644 index 0000000..221c706 --- /dev/null +++ b/resources/views/theme/backend/adminlte/service/widget/billinghistory.blade.php @@ -0,0 +1,51 @@ + + + + + + {{-- + + + --}} + + + + + + + @foreach($o->account->invoiceSummary($o->invoices->pluck('id')) as $oo) + + + + {{-- + + + --}} + + + + @endforeach + + + {{-- + @dump($oo->getAttributes()) + @dump($o->invoices()->get()) + --}} +
InvoiceDueStartStopTotalBalance
{{ $oo->id }}{{ $oo->due_at->format('Y-m-d') }}{{ $oo->_start_at->format('Y-m-d') }}{{ $oo->_stop_at->format('Y-m-d') }}{{ number_format($oo->_xtotal,2) }}{{ number_format($oo->_xbalance,2) }}
+ +@section('page-scripts') + @css(datatables,bootstrap4) + @js(datatables,bootstrap4) + + +@append \ No newline at end of file