@php $candidate = trim((string) ($pdfFontFile ?? '')); $candidate = basename($candidate); $primaryPath = $candidate !== '' ? public_path('fonts/' . $candidate) : ''; $primaryExists = $primaryPath !== '' && is_file($primaryPath); $primaryUrl = $primaryExists ? asset('fonts/' . rawurlencode($candidate)) : ''; $notoCandidates = ['NotoSansSinhala.ttf', 'NotoSerifSinhala.ttf', 'Noto Sans Sinhala.ttf']; $notoUrl = ''; foreach ($notoCandidates as $f) { if (is_file(public_path('fonts/' . $f))) { $notoUrl = asset('fonts/' . rawurlencode($f)); break; } } @endphp @if($primaryUrl !== '') @endif @if($notoUrl !== '') @endif
@if(request()->query('autoprint') != '1')| Date | Type | Ref | Debit | Credit | Balance |
|---|---|---|---|---|---|
| {{ $row['date'] ?? '' }} | {{ $row['type'] ?? '' }} | {{ $row['ref'] ?? '' }} | {{ number_format((float)($row['debit'] ?? 0), 2) }} | {{ number_format((float)($row['credit'] ?? 0), 2) }} | {{ number_format((float)($row['balance'] ?? 0), 2) }} |