@extends('layouts.business.pdf.pdf_layout') @section('pdf_title')
{{ __('Duration:') }} @if ($duration === 'today') {{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }} @elseif ($duration === 'yesterday') {{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }} @else {{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }} {{ __('to') }} {{ Carbon\Carbon::parse($filter_to_date)->format('d-m-Y') }} @endif
@endif| {{ __('Branch') }} | @endif{{ __('Date') }} | {{ __('Category') }} | {{ __('Income For') }} | {{ __('Payment Type') }} | {{ __('Reference') }} | {{ __('Amount') }} |
|---|---|---|---|---|---|---|
| {{ $income_report->branch->name ?? '' }} | @endif{{ formatted_date($income_report->incomeDate) }} | {{ $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 }} | {{ currency_format($income_report->amount, currency: business_currency()) }} |
| {{ __('Total') }} | @if (auth()->user()->accessToMultiBranch())@endif | {{ currency_format($income_reports->sum('amount'), currency: business_currency()) }} |