@if(\App\Models\Setting::get('printer_show_logo') && \App\Models\Setting::get('store_logo')) @endif
{{ $settings['store_name'] }}
@if($settings['store_address'])
{{ $settings['store_address'] }}
@endif @if($settings['store_phone'])
Telp: {{ $settings['store_phone'] }}
@endif
Tgl: {{ $transaction->transaction_date->format('d/m/Y H:i') }}
No : {{ $transaction->invoice_number }}
Ksr: {{ $transaction->user->name }}
@if($transaction->customer_name !== 'Umum')
Plg: {{ $transaction->customer_name }}
@endif
@foreach($transaction->items as $item)
{{ strtoupper($item->product_name) }}
{{ $item->quantity }} x {{ number_format($item->unit_price,0,',','.') }} {{ number_format($item->subtotal,0,',','.') }}
@if($item->discount_amount > 0)
(Diskon Item)-{{ number_format($item->discount_amount,0,',','.') }}
@endif
@endforeach
Subtotal{{ number_format($transaction->subtotal,0,',','.') }}
@if($transaction->discount_amount > 0)
Diskon Final-{{ number_format($transaction->discount_amount,0,',','.') }}
@endif @if($transaction->tax_amount > 0)
Pajak ({{ $transaction->tax_percent }}%){{ number_format($transaction->tax_amount,0,',','.') }}
@endif
TOTAL{{ number_format($transaction->grand_total,0,',','.') }}
@if($transaction->payment_method === 'cash')
Metode: TUNAI
Bayar{{ number_format($transaction->amount_paid,0,',','.') }}
Kembali{{ number_format($transaction->change_amount,0,',','.') }}
@else
Metode{{ strtoupper($transaction->payment_method) }}
@endif
{{-- Spasi bawah struk agar tidak terpotong saat keluar dari printer thermal --}}