@extends('layouts.business.pdf.pdf_layout') @section('pdf_title')
@include('business::print.header')

{{ __('Expense Report List') }}

{{--

{{ __('Duration: 14-12-2025 to 24-12-2025') }}

--}}
@endsection @section('pdf_content') @if (auth()->user()->accessToMultiBranch()) @endif @foreach ($expense_reports as $expense_report) @if (auth()->user()->accessToMultiBranch()) @endif @endforeach @if ($expense_reports->count() > 0) @if (auth()->user()->accessToMultiBranch()) @endif @endif
{{ __('Branch') }}{{ __('Date') }} {{ __('Category') }} {{ __('Expense For') }} {{ __('Payment Type') }} {{ __('Reference') }} {{ __('Amount') }}
{{ $expense_report->branch->name ?? '' }} {{ formatted_date($expense_report->expenseDate) }} {{ $expense_report->category?->categoryName }} {{ $expense_report->expanseFor }} @if ($expense_report->transactions && $expense_report->transactions->isNotEmpty()) {{ $expense_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 ($expense_report->payment_type_id) {{ $expense_report->payment_type?->name }} @else {{ $expense_report->paymentType }} @endif {{ $expense_report->referenceNo }} {{ currency_format($expense_report->amount, currency: business_currency()) }}
{{ __('Total') }} {{ currency_format($expense_report->amount, currency: business_currency()) }}
@endsection