tweak invoice
This commit is contained in:
parent
830b7362a4
commit
cedb53b155
|
|
@ -2,10 +2,9 @@
|
|||
|
||||
<x-layout.app>
|
||||
<x-slot:page_title>Invoice - {{ $school->name }}</x-slot:page_title>
|
||||
@php( dump($invoiceData ))
|
||||
<x-table.table class="mt-6">
|
||||
<x-slot:title>Invoice</x-slot:title>
|
||||
<thead>
|
||||
<div class="relative max-h-96 overflow-y-auto">
|
||||
<x-table.table class="my-6 pb-6 border-collapse">
|
||||
<thead class="sticky top-0 z-10">
|
||||
<tr>
|
||||
<x-table.th>Student Name</x-table.th>
|
||||
<x-table.th>Audition</x-table.th>
|
||||
|
|
@ -25,12 +24,18 @@
|
|||
</tr>
|
||||
@endforeach
|
||||
</x-table.body>
|
||||
<tfoot>
|
||||
<tfoot class="sticky bottom-0 z-10">
|
||||
<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['lateFeesTotal'],2) }}</x-table.th>
|
||||
</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>
|
||||
<x-table.th colspan="4" class="text-right">School Fee</x-table.th>
|
||||
<x-table.th >${{ number_format($invoiceData['schoolFeeTotal'],2) }}</x-table.th>
|
||||
|
|
@ -41,4 +46,5 @@
|
|||
</tr>
|
||||
</tfoot>
|
||||
</x-table.table>
|
||||
</div>
|
||||
</x-layout.app>
|
||||
|
|
|
|||
Loading…
Reference in New Issue