{{ $reportTitle }}

Project: {{ $projectName }} @if($from || $to) | Period: {{ $from ?? '—' }} to {{ $to ?? '—' }} @endif
Generated: {{ now()->format('d M Y, h:i A') }} Total Records: {{ is_countable($data) ? count($data) : $data->count() }}
@php $rows = $data instanceof \Illuminate\Support\Collection ? $data->toArray() : (array) $data; $first = is_object($rows[0] ?? null) ? (array) $rows[0] : ($rows[0] ?? []); $headers = array_keys($first); @endphp @if(count($rows) > 0) @foreach($headers as $h) @endforeach @foreach($rows as $row) @php $row = is_object($row) ? (array) $row : $row; @endphp @foreach($headers as $h) @php $val = $row[$h] ?? ''; @endphp @endforeach @endforeach
{{ ucwords(str_replace('_', ' ', $h)) }}
@if(is_numeric($val) && (str_contains($h, 'amount') || str_contains($h, 'paid') || str_contains($h, 'due') || str_contains($h, 'price') || str_contains($h, 'outstanding') || str_contains($h, 'payable') || str_contains($h, 'investment') || str_contains($h, 'commission') || str_contains($h, 'total') || str_contains($h, 'agreed'))) ৳{{ number_format($val) }} @else {{ $val }} @endif
@else

No data available for this report.

@endif