Invoicing Feature Complete #8
|
|
@ -2,10 +2,9 @@
|
||||||
|
|
||||||
<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>
|
||||||
|
|
@ -25,12 +24,18 @@
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
</x-table.body>
|
</x-table.body>
|
||||||
<tfoot>
|
<tfoot class="sticky bottom-0 z-10">
|
||||||
<tr>
|
<tr>
|
||||||
<x-table.th colspan="3" class="text-right">Totals</x-table.th>
|
<td colspan="2">
|
||||||
|
<x-table.th class="text-right">Totals</x-table.th>
|
||||||
<x-table.th>${{ number_format($invoiceData['linesTotal'],2) }}</x-table.th>
|
<x-table.th>${{ number_format($invoiceData['linesTotal'],2) }}</x-table.th>
|
||||||
<x-table.th>${{ number_format($invoiceData['lateFeesTotal'],2) }}</x-table.th>
|
<x-table.th>${{ number_format($invoiceData['lateFeesTotal'],2) }}</x-table.th>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="3"></td>
|
||||||
|
<x-table.th class="text-right">Total Entry Fees</x-table.th>
|
||||||
|
<x-table.th>${{ number_format($invoiceData['linesTotal'] + $invoiceData['lateFeesTotal'], 2) }}</x-table.th>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<x-table.th colspan="4" class="text-right">School Fee</x-table.th>
|
<x-table.th colspan="4" class="text-right">School Fee</x-table.th>
|
||||||
<x-table.th >${{ number_format($invoiceData['schoolFeeTotal'],2) }}</x-table.th>
|
<x-table.th >${{ number_format($invoiceData['schoolFeeTotal'],2) }}</x-table.th>
|
||||||
|
|
@ -41,4 +46,5 @@
|
||||||
</tr>
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
</x-table.table>
|
</x-table.table>
|
||||||
|
</div>
|
||||||
</x-layout.app>
|
</x-layout.app>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue