From cedb53b1558cf3b0794f0077e23d67f5f9956b22 Mon Sep 17 00:00:00 2001 From: Matt Young Date: Sat, 29 Jun 2024 03:46:56 -0500 Subject: [PATCH] tweak invoice --- resources/views/dashboard/invoice.blade.php | 80 +++++++++++---------- 1 file changed, 43 insertions(+), 37 deletions(-) diff --git a/resources/views/dashboard/invoice.blade.php b/resources/views/dashboard/invoice.blade.php index a8afc96..c29d66a 100644 --- a/resources/views/dashboard/invoice.blade.php +++ b/resources/views/dashboard/invoice.blade.php @@ -2,43 +2,49 @@ Invoice - {{ $school->name }} - @php( dump($invoiceData )) - - Invoice - - - Student Name - Audition - Entry Timestamp - Entry Fee - Late Fee - - - - @foreach($invoiceData['lines'] as $line) +
+ + + + Student Name + Audition + Entry Timestamp + Entry Fee + Late Fee + + + + @foreach($invoiceData['lines'] as $line) + + {{ $line['student_name'] }} + {{ $line['audition'] }} + {{ $line['entry_timestamp']->setTimezone('America/Chicago')->format('m/d/Y g:i:s A') }} + ${{ number_format($line['entry_fee'],2) }} + ${{ number_format($line['late_fee'],2) }} + + @endforeach + + - {{ $line['student_name'] }} - {{ $line['audition'] }} - {{ $line['entry_timestamp']->setTimezone('America/Chicago')->format('m/d/Y g:i:s A') }} - ${{ number_format($line['entry_fee'],2) }} - ${{ number_format($line['late_fee'],2) }} + + Totals + ${{ number_format($invoiceData['linesTotal'],2) }} + ${{ number_format($invoiceData['lateFeesTotal'],2) }} - @endforeach - - - - Totals - ${{ number_format($invoiceData['linesTotal'],2) }} - ${{ number_format($invoiceData['lateFeesTotal'],2) }} - - - School Fee - ${{ number_format($invoiceData['schoolFeeTotal'],2) }} - - - Grand Total - ${{ number_format($invoiceData['grandTotal'],2) }} - - - + + + Total Entry Fees + ${{ number_format($invoiceData['linesTotal'] + $invoiceData['lateFeesTotal'], 2) }} + + + School Fee + ${{ number_format($invoiceData['schoolFeeTotal'],2) }} + + + Grand Total + ${{ number_format($invoiceData['grandTotal'],2) }} + + + +