@extends('layouts.app') @section('title', 'Struk Transaksi') @section('content') @php $isNarrowPaper = ($printerSettings['paper_size'] ?? '80mm') === '58mm'; $receiptLogo = $printerLogo ?? $storeLogo ?? null; @endphp
@if($printerSettings['show_logo'] && !empty($receiptLogo)) @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->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'])

{{ $printerSettings['footer_text'] ?? 'Terima kasih!' }}

Barang yang sudah dibeli tidak dapat ditukar/dikembalikan

@endif
{{ $backLabel ?? 'Kembali ke POS' }}
@endsection