Income: {{ number_format($totalIncome, 2) }}
Expense: {{ number_format($totalExpense, 2) }}
Net Profit: {{ number_format($netProfit, 2) }}
@if($farms->isEmpty())
You do not have farm access yet. Ask admin to assign at least one farm before recording finance transactions.
@endif
@foreach($transactions as $t)
{{ $t->category?->name }}
{{ $t->farm?->name }} ยท {{ optional($t->transaction_date)->format('Y-m-d') }}
{{ $t->category?->type }}
Amount
{{ number_format($t->amount, 2) }}
Edit transaction {{ $t->id }}
@endforeach
| Date | Farm | Category | Type | Amount |
@foreach($transactions as $t)
| {{ $t->transaction_date?->format('Y-m-d') }} | {{ $t->farm?->name }} | {{ $t->category?->name }} | {{ $t->category?->type }} | {{ number_format($t->amount, 2) }} |
Edit transaction {{ $t->id }}
|
@endforeach
{{ $transactions->links() }}