@if (auth()->user()->accessToMultiBranch()) @endif @foreach ($income_reports as $income_report) @if (auth()->user()->accessToMultiBranch()) @endif @endforeach @if ($income_reports->count() > 0) @if (auth()->user()->accessToMultiBranch()) @endif @endif
{{ __('SL') }}.{{ __('Branch') }}{{ __('Category') }} {{ __('Income For') }} {{ __('Payment Type') }} {{ __('Reference Number') }} {{ __('Income Date') }} {{ __('Amount') }}
{{ $loop->iteration }}{{ $income_report->branch->name ?? '' }}{{ $income_report->category?->categoryName }} {{ $income_report->incomeFor }} @if ($income_report->transactions && $income_report->transactions->isNotEmpty()) {{ $income_report->transactions->map(function($transaction) { if ($transaction->transaction_type === 'bank_payment' && !empty($transaction->paymentType?->name)) { return $transaction->paymentType->name; } return $transaction->transaction_type ? ucfirst(explode('_', $transaction->transaction_type)[0]) : ''; })->unique()->implode(', ') }} @elseif ($income_report->payment_type_id) {{ $income_report->payment_type?->name }} @else {{ $income_report->paymentType }} @endif {{ $income_report->referenceNo }} {{ formatted_date($income_report->incomeDate) }} {{ currency_format($income_report->amount, currency: business_currency()) }}