Fingerprint Report

BM Umrah Booking System

@php $__currency = $currency ?? 'SAR'; $__rate = app(\App\Services\CurrencyRateService::class)->getCurrentRateValue(); $fmtNum = function($amount, $d = 2) use ($__currency, $__rate) { if ($amount === null || $amount === '') return ''; $val = $__currency === 'BDT' ? $amount * $__rate : $amount; return number_format($val, $d); }; $fmtCurrency = function($amount, $d = 2) use ($__currency, $__rate) { if ($amount === null || $amount === '') return ''; $val = $__currency === 'BDT' ? $amount * $__rate : $amount; return ($__currency === 'BDT' ? 'BDT ' : 'SAR ') . number_format($val, $d); }; $appliedFilters = array_filter([ 'Search' => request('search'), 'Booking Date From' => request('booking_date_from'), 'Booking Date To' => request('booking_date_to'), 'Completion Date From' => request('completion_date_from'), 'Completion Date To' => request('completion_date_to'), 'Status' => request('status'), 'Assigned Staff' => request('assigned_staff_id') ? \App\Models\User::find(request('assigned_staff_id'))?->name : null, 'Location' => request('fingerprint_location'), 'Branch' => request('branch_id') ? \App\Models\Branch::find(request('branch_id'))?->name : null, 'District' => request('district_id') ? \App\Models\District::find(request('district_id'))?->name : null, 'Fingerprint Branch' => request('fingerprint_branch_id') ? \App\Models\Branch::find(request('fingerprint_branch_id'))?->name : null, ]); @endphp @if(!empty($appliedFilters))
Filters Applied: @foreach($appliedFilters as $label => $value) {{ $label }}: {{ $value }}@if(!$loop->last) | @endif @endforeach
@endif @if($canViewFinancials) @endif @if($canViewFinancials) @endif @forelse($items as $row) @if($canViewFinancials) @endif @if($canViewFinancials) @endif @empty @endforelse
Invoice ID Customer Name Booking Date Passenger Name Passport No Mobile DistrictFingerprint ChargeFingerprint Cost Fingerprint Deadline Completed Date Req. Flight Act. Flight Status RemarksProfit Loss
{{ $row['_isFirstPassenger'] ? $row['invoice_id'] : '' }} {{ $row['_isFirstPassenger'] ? $row['customer_name'] : '' }} {{ $row['_isFirstPassenger'] ? $row['booking_date'] : '' }} {{ $row['passenger_name'] }} {{ $row['passport_no'] }} {{ $row['_isFirstPassenger'] ? $row['customer_mobile'] . "\n" . $row['passenger_mobile'] : $row['passenger_mobile'] }} {{ $row['_isFirstPassenger'] ? $row['district'] : '' }}{{ $row['_isFirstPassenger'] ? $fmtNum($row['fingerprint_charge']) : '' }}{{ $row['_isFirstPassenger'] ? $fmtNum($row['fingerprint_cost']) : '' }} {{ $row['_isFirstPassenger'] ? ($row['fingerprint_deadline'] ?? '-') : '' }} {{ $row['completed_date'] ?? '-' }} {{ $row['required_flight'] ?? '-' }} {{ $row['actual_flight'] ?? '-' }} {{ $row['status_display'] ?? '-' }} {{ $row['remarks'] ?? '-' }}{{ $row['_isFirstPassenger'] && ($row['profit'] ?? 0) > 0 ? $fmtNum($row['profit']) : '' }} {{ $row['_isFirstPassenger'] && ($row['loss'] ?? 0) > 0 ? $fmtNum($row['loss']) : '' }}
No records found.
Total Invoices: {{ $totals['total_invoices'] }}
Total PAX: {{ $totals['total_pax'] }}
@if($canViewFinancials)
Total Fingerprint Charge: {{ $fmtCurrency($totals['total_fingerprint_charge']) }}
@endif
Total Fingerprint Cost: {{ $fmtCurrency($totals['total_fingerprint_cost']) }}
@if($canViewFinancials)
Total Profit: @if($totals['total_profit'] > 0){{ $fmtCurrency($totals['total_profit']) }}@else-@endif
Total Loss: @if($totals['total_loss'] > 0){{ $fmtCurrency($totals['total_loss']) }}@else-@endif
Net Profit/Loss: {{ $fmtCurrency($totals['total_profit_loss']) }}
@endif