Invoicing Feature Complete #8
|
|
@ -2,43 +2,49 @@
|
||||||
|
|
||||||
<x-layout.app>
|
<x-layout.app>
|
||||||
<x-slot:page_title>Invoice - {{ $school->name }}</x-slot:page_title>
|
<x-slot:page_title>Invoice - {{ $school->name }}</x-slot:page_title>
|
||||||
@php( dump($invoiceData ))
|
<div class="relative max-h-96 overflow-y-auto">
|
||||||
<x-table.table class="mt-6">
|
<x-table.table class="my-6 pb-6 border-collapse">
|
||||||
<x-slot:title>Invoice</x-slot:title>
|
<thead class="sticky top-0 z-10">
|
||||||
<thead>
|
<tr>
|
||||||
<tr>
|
<x-table.th>Student Name</x-table.th>
|
||||||
<x-table.th>Student Name</x-table.th>
|
<x-table.th>Audition</x-table.th>
|
||||||
<x-table.th>Audition</x-table.th>
|
<x-table.th>Entry Timestamp</x-table.th>
|
||||||
<x-table.th>Entry Timestamp</x-table.th>
|
<x-table.th>Entry Fee</x-table.th>
|
||||||
<x-table.th>Entry Fee</x-table.th>
|
<x-table.th>Late Fee</x-table.th>
|
||||||
<x-table.th>Late Fee</x-table.th>
|
</tr>
|
||||||
</tr>
|
</thead>
|
||||||
</thead>
|
<x-table.body>
|
||||||
<x-table.body>
|
@foreach($invoiceData['lines'] as $line)
|
||||||
@foreach($invoiceData['lines'] as $line)
|
<tr>
|
||||||
|
<x-table.td>{{ $line['student_name'] }}</x-table.td>
|
||||||
|
<x-table.td>{{ $line['audition'] }}</x-table.td>
|
||||||
|
<x-table.td>{{ $line['entry_timestamp']->setTimezone('America/Chicago')->format('m/d/Y g:i:s A') }}</x-table.td>
|
||||||
|
<x-table.td>${{ number_format($line['entry_fee'],2) }}</x-table.td>
|
||||||
|
<x-table.td>${{ number_format($line['late_fee'],2) }}</x-table.td>
|
||||||
|
</tr>
|
||||||
|
@endforeach
|
||||||
|
</x-table.body>
|
||||||
|
<tfoot class="sticky bottom-0 z-10">
|
||||||
<tr>
|
<tr>
|
||||||
<x-table.td>{{ $line['student_name'] }}</x-table.td>
|
<td colspan="2">
|
||||||
<x-table.td>{{ $line['audition'] }}</x-table.td>
|
<x-table.th class="text-right">Totals</x-table.th>
|
||||||
<x-table.td>{{ $line['entry_timestamp']->setTimezone('America/Chicago')->format('m/d/Y g:i:s A') }}</x-table.td>
|
<x-table.th>${{ number_format($invoiceData['linesTotal'],2) }}</x-table.th>
|
||||||
<x-table.td>${{ number_format($line['entry_fee'],2) }}</x-table.td>
|
<x-table.th>${{ number_format($invoiceData['lateFeesTotal'],2) }}</x-table.th>
|
||||||
<x-table.td>${{ number_format($line['late_fee'],2) }}</x-table.td>
|
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
<tr>
|
||||||
</x-table.body>
|
<td colspan="3"></td>
|
||||||
<tfoot>
|
<x-table.th class="text-right">Total Entry Fees</x-table.th>
|
||||||
<tr>
|
<x-table.th>${{ number_format($invoiceData['linesTotal'] + $invoiceData['lateFeesTotal'], 2) }}</x-table.th>
|
||||||
<x-table.th colspan="3" class="text-right">Totals</x-table.th>
|
</tr>
|
||||||
<x-table.th>${{ number_format($invoiceData['linesTotal'],2) }}</x-table.th>
|
<tr>
|
||||||
<x-table.th>${{ number_format($invoiceData['lateFeesTotal'],2) }}</x-table.th>
|
<x-table.th colspan="4" class="text-right">School Fee</x-table.th>
|
||||||
</tr>
|
<x-table.th >${{ number_format($invoiceData['schoolFeeTotal'],2) }}</x-table.th>
|
||||||
<tr>
|
</tr>
|
||||||
<x-table.th colspan="4" class="text-right">School Fee</x-table.th>
|
<tr>
|
||||||
<x-table.th >${{ number_format($invoiceData['schoolFeeTotal'],2) }}</x-table.th>
|
<x-table.th colspan="4" class="text-right">Grand Total</x-table.th>
|
||||||
</tr>
|
<x-table.th >${{ number_format($invoiceData['grandTotal'],2) }}</x-table.th>
|
||||||
<tr>
|
</tr>
|
||||||
<x-table.th colspan="4" class="text-right">Grand Total</x-table.th>
|
</tfoot>
|
||||||
<x-table.th >${{ number_format($invoiceData['grandTotal'],2) }}</x-table.th>
|
</x-table.table>
|
||||||
</tr>
|
</div>
|
||||||
</tfoot>
|
|
||||||
</x-table.table>
|
|
||||||
</x-layout.app>
|
</x-layout.app>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue