@php $branchId = $transaction->branch_id ?? null; $faviconLogo = \App\Services\SettingsService::get('store_logo', null, $branchId); $faviconPath = $faviconLogo ? public_path('uploads/logo/' . $faviconLogo) : null; $faviconUrl = $faviconLogo ? asset('uploads/logo/' . $faviconLogo) . (file_exists($faviconPath) ? '?v=' . filemtime($faviconPath) : '') : null; $faviconMime = match (strtolower(pathinfo($faviconLogo ?? '', PATHINFO_EXTENSION))) { 'png' => 'image/png', 'jpg', 'jpeg' => 'image/jpeg', 'gif' => 'image/gif', 'webp' => 'image/webp', 'svg' => 'image/svg+xml', default => 'image/x-icon', }; @endphp @if($faviconLogo) @else @endif
@if($printerSettings['show_logo'] && !empty($storeLogo)) @endif

{{ $storeName ?? $transaction->branch->name }}

{{ $transaction->branch->address ?? '' }}

Telp: {{ $transaction->branch->phone ?? '-' }}

No. Struk {{ $transaction->invoice_number }}
Tanggal {{ $transaction->created_at->format('d/m/Y H:i') }}
Kasir {{ $transaction->user->name }}
@if($transaction->customer_name)
Pelanggan {{ $transaction->customer_name }}
@endif
@foreach($transaction->details as $detail) @endforeach
Item Qty Subtotal
{{ $detail->product_name }}
@if($transaction->type === 'pos') Rp {{ number_format($detail->price, 0, ',', '.') }} @else {{ $detail->product_sku ?? '-' }} @endif
{{ $detail->quantity }} Rp {{ number_format($detail->total, 0, ',', '.') }}
@if($transaction->discount > 0)
Subtotal Rp {{ number_format($transaction->subtotal, 0, ',', '.') }}
Diskon - Rp {{ number_format($transaction->discount, 0, ',', '.') }}
@endif @if($transaction->tax > 0)
Pajak ({{ $transaction->tax_rate }}%) Rp {{ number_format($transaction->tax, 0, ',', '.') }}
@endif
Total Bayar Rp {{ number_format($transaction->total, 0, ',', '.') }}
@if($printerSettings['show_footer']) @endif