@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')
@endif

Supplier Stock Report

Supplier: {{ $supplier->supplier_name }}{{ !empty($supplier->supplier_company) && $supplier->supplier_company !== 'NULL' ? ' - ' . $supplier->supplier_company : '' }}
Generated: {{ $generatedAt ?? '' }}
Scope: {{ $scopeLabel ?? '' }}
@if(($stockScope ?? 'current_stock') === 'purchased_from_supplier') @else @endif @foreach($stockRows as $r) @if(($stockScope ?? 'current_stock') === 'purchased_from_supplier') @else @endif @endforeach
Product අයිතමය BarcodePurchased Qty Purchased ValueBundle Qty Current Qty
{{ $r->product_name ?? '' }} {{ $r->product_local_name ?? '' }} {{ $r->product_barcode ?? '' }}{{ number_format((float)($r->purchased_qty ?? 0), 2) }} {{ number_format((float)($r->purchased_value ?? 0), 2) }}{{ $r->bundle_qty === null ? '-' : number_format((float)($r->bundle_qty ?? 0), 2) }} {{ number_format((float)($r->current_qty ?? 0), 2) }}