@foreach($expenses as $expense) @php $itemCount = count($expense->items); @endphp @foreach($expense->items as $index => $item) @if($index === 0) @endif @endforeach @endforeach
EXPENSES REPORT
TOTAL PAID BALANCE SUPPLIER USER DATE EXPENSE ITEMS
ITEM COST DESCRIPTION
{{ number_format($expense->amount ?? 0) }} {{ number_format($expense->paid ?? 0) }} {{ number_format(($expense->amount ?? 0) - ($expense->paid ?? 0)) }} {{ $expense->supplier->name ?? '' }} {{ $expense->user->name ?? '' }} {{ $expense->date ?? '----' }}{{ $item->category->name }} {{ number_format($item->amount) }} {{ $item->description }}
Total Amount: {{ number_format($total) }} Total Paid: {{ number_format($paid) }} Total Balance: {{ number_format($total - $paid) }}