@php $lang = $printLanguage ?? 0; $format = strtolower(request('format', $format ?? 'pos')); $paperSetting = request('paper_mm') ?? request('paper_width_mm') ?? request('paper_width') ?? ($receiptSettings['paper_width_mm'] ?? $receiptSettings['receipt_paper_width'] ?? ($location->paper_width ?? $location->receipt_width ?? 80)); $paperSetting = is_numeric($paperSetting) ? (float) $paperSetting : 80; $isA4 = $format === 'a4'; $isWideFormat = in_array($format, ['wide', 'letter', 'legal'], true); $isAnyAFormat = strpos($format, 'a') === 0; $isWide = ($paperSetting >= 150) || $isAnyAFormat || $isWideFormat; $returnTotal = $returnTotal ?? 0; // Logo widths come from the location record (set in Location settings) $logoWidthPos = $location->logo_width_pos ?? 95; $logoWidthA4 = $location->logo_width_a4 ?? 40; // For on-screen preview, let the container span available width; print CSS handles page sizing. @endphp Bill Print - {{ $invoice->invoice_number }}
View Payment History
@include('pos.invoices.partials.receipt', [ 'invoice' => $invoice, 'location' => $location, 'receiptSettings' => $receiptSettings, 'format' => $format, 'paperSetting' => $paperSetting, 'returnTotal' => $returnTotal, 'lang' => $lang, ])