@php $style = $configuration['style']; $labels = $configuration['labels']; $options = $configuration['options']; $enabledSections = collect($configuration['sections'])->where('enabled', true)->values(); $isMultiStore = count($document['stores'] ?? []) > 1; $invoiceFontStack = \App\Services\Invoices\InvoiceTemplateService::FONT_OPTIONS[$style['font_family']] ?? \App\Services\Invoices\InvoiceTemplateService::FONT_OPTIONS['Arial']; @endphp {{ $labels['invoice_title'] ?? 'Tax Invoice' }} - {{ $document['invoice_number'] }} @if(!$preview && !empty($pdfUrl))
Download PDF
@endif
@foreach($enabledSections as $section) @php($sectionId = $section['id'])
@include('invoices.partials.section', ['sectionId' => $sectionId])
@endforeach