@foreach ($items as $key => $income) @endforeach
@lang('SL') @lang('Type') @lang('Title') @lang('Description') @lang('Amount') @lang('Income Date') @lang('Payment Date') @lang('Payment Type') @lang('Transaction No') @lang('Account') @lang('Payment Remark') @lang('Received Date') @lang('Received By') @lang('Actions')
{{ ($items->currentPage() - 1) * $items->perPage() + $key + 1 }} {{ $income->incomeType->name ?? '-' }} {{ $income->title }} {{ $income->description ?? '-' }} {{ number_format($income->amount, 2) }} {{ \Carbon\Carbon::parse($income->income_date)->format('d M Y') }} {{ optional($income->payment_date)->format('d M Y') }} {{ ucfirst($income->payment_type ?? '-') }} {{ $income->transaction_no ?? '-' }} @php if (isset($income->account)) { if (isset($income->account->bank_name)) { echo $income->account->bank_name . ' - ' . $income->account->account_number; } elseif (isset($income->account->company_name)) { echo $income->account->company_name . ' (' . $income->account->mobile_number . ')'; } else { echo '-'; } } else { echo '-'; } @endphp {{ $income->payment_remark ?? '-' }} {{ optional($income->received_date)->format('d M Y') }} {{ $income->received_by ?? '-' }}
@if ($items instanceof \Illuminate\Pagination\LengthAwarePaginator) {{ $items->links('backend.layouts.paginate') }} @endif