Expense Type |
@php
$expenseTypes = collect($expenses)->pluck('expense_type')->unique();
@endphp
@foreach($expenseTypes as $expenseType)
@endforeach
|
||||||
---|---|---|---|---|---|---|---|
Expense Title |
@php
// Group expense titles by expense type
$groupedExpenses = [];
foreach ($expenses as $expense) {
$groupedExpenses[$expense['expense_type']][] = $expense['expense_title'];
}
@endphp
@foreach($groupedExpenses as $expenseType => $titles)
@endforeach
|
||||||
Emp ID | {{ $emp_id }} | Full Name | {{ $full_name }} | Department | {{ $department }} | Designation | {{ $designation }} |
From | {{ $from_date }} | Total Pages | {{ $total_pages }} | Printed On | {{ $printed_on }} |
Sr. No | Expense Type | Expense Title | Entitlement | Usage |
---|---|---|---|---|
{{ $expense['sr_no'] }} | {{ $expense['expense_type'] }} | {{ $expense['expense_title'] }} | {{ number_format($expense['entitlement'], 2) }} | {{ number_format($expense['usage'], 2) }} |
Sub Total | {{ number_format($subtotal, 2) }} | {{ number_format($usage_total, 2) }} | ||
Per Page Total | {{ number_format($per_page_entitlement_total, 2) }} | {{ number_format($per_page_usage_total, 2) }} |