{{ $sale->branch->name ?? config('app.name') }}

{{ $sale->branch->address ?? 'Alamat Toko' }}

@if($sale->branch && $sale->branch->phone)

Telp: {{ $sale->branch->phone }}

@endif
Kode transaksi : {{ $sale->reference }}
Tanggal : {{ \Carbon\Carbon::parse($sale->created_at)->format('d F Y H:i') }}
Customer : {{ $sale->customer_name ?? 'Walk In Customer' }}
Kasir : {{ Auth::user()->name ?? 'Admin' }}
Payment : {{ $sale->payment_method }}
 
@forelse($sale->saleDetails as $item)
{{ $item->product_name }}
{{ number_format($item->unit_price, 0, ',', '.') }} x {{ $item->quantity }}
{{ number_format($item->sub_total, 0, ',', '.') }}
{{-- @if($item->product_code)
{{ $item->product_code }}
@endif @if($item->product_discount_amount > 0)
Diskon {{ $item->product_discount_type == 'percentage' ? $item->product_discount_amount.'%' : 'Rp '.number_format($item->product_discount_amount, 0, ',', '.') }}
-{{ number_format($item->product_discount_amount, 0, ',', '.') }}
@endif --}}
@empty
Tidak ada item
@endforelse
@php $subtotal = $sale->total_amount + $sale->discount_amount; @endphp @if($sale->discount_amount > 0)
Subtotal
Rp {{ number_format($subtotal, 2, ',', '.') }}
Diskon @if($sale->discount_percentage > 0)({{ $sale->discount_percentage }}%)@endif
-Rp {{ number_format($sale->discount_amount, 2, ',', '.') }}
@endif Total bayar
Rp {{ number_format($sale->total_amount, 2, ',', '.') }}
Bayar
 
Rp {{ number_format($sale->paid_amount, 2, ',', '.') }}
@if($sale->due_amount != 0)
{{ $sale->due_amount > 0 ? 'Kembali' : 'Kurang' }}
Rp {{ number_format(abs($sale->due_amount), 2, ',', '.') }}
@endif
{{ $sale->reference }}
Terima kasih atas kunjungan Anda
Barang yang sudah dibeli
tidak dapat dikembalikan