{{ $shop_infos->shop_name }}
{{ $shop_infos->business_type }}
{{ $shop_infos->address }}
Income Statement
{{ \Carbon\Carbon::parse($start_date)->format('d-m-Y') }}
To
{{ \Carbon\Carbon::parse($end_date)->format('d-m-Y') }}
| Income |
|
@php
$total_income = 0; // Initialize total income
@endphp
@foreach($ledger_trans as $item)
| {{ $item->ledger_name ?? 'N/A' }} |
{{ number_format($item->total_balance ?? 0, 2) }} |
@php
// Accumulate total income
$total_income += $item->total_balance ?? 0;
@endphp
@endforeach
| Total Income |
{{ number_format($total_income, 2) }} |
| Net Profit/Loss |
0.00 |
| Expense |
|
@php
$total_expense = 0; // Initialize total income
@endphp
@foreach($ledger_trans_expenses as $item)
| {{ $item->ledger_name ?? 'N/A' }} |
{{ number_format($item->total_balance ?? 0, 2) }} |
@php
// Accumulate total income
$total_expense += $item->total_balance ?? 0;
@endphp
@endforeach
| Total Expense |
{{ number_format($total_expense, 2) }} |