@php $pdfSettings = pdfSettings(); $location = request('search_location') ?? ''; $expenseId = request('search_expense') ?? ''; $from = request('search_from') ?? ''; $to = request('search_to') ?? ''; $billTotal = 0; @endphp Expense Report

{{ isset($pdfSettings['title']) ? $pdfSettings['title'] : 'Aarya Agriculture' }}

{{ isset($pdfSettings['address']) ? $pdfSettings['address'] : $contact_us->address ?? '' }}

GST No.: {{ isset($pdfSettings['gst_no']) ? $pdfSettings['gst_no'] : '24AFRFNA4448ICZQ' }} Mobile No.: {{ isset($pdfSettings['mobile_no']) ? $pdfSettings['mobile_no'] : $contact_us->mobile ?? '' }} Email: {{ isset($pdfSettings['email']) ? $pdfSettings['email'] : $contact_us->email ?? '-' }}

Expense Report

Location: {{ $locationDetail->name ?? '-' }}
@if (!empty($from) && !empty($to)) Period: {{ $from }} to {{ $to }} @endif
@if (!empty($_GET['search_location'])) @if (count($reportData) > 0) @foreach ($reportData as $expense) @php $billTotal += $expense->paid_amount; @endphp {{-- --}} @endforeach @endif @endif
Date Expense Type Expense Sub Type Created By Employee Name Bank Name Payment Mode Amount (₹)
{{ $expense->expense_date ? date('d-m-Y', strtotime($expense->expense_date)) : '-' }} {{ $expense->expense_type }} {{ $expense->expense_sub_type_name ?? '-' }} {{ $expense->created_by ?? '-' }} {{ $expense->employee_name ?? '-' }} {{ $bankNames[$expense->bank_id] ?? 'N/A' }} {{ ucfirst($expense->payment_mode) ?? '-' }} {{ number_format($expense->paid_amount, 2) }}{{ $expense->remark ?? '-' }}
Total {{ number_format($billTotal, 2) }}