{{$profile['name']}}
{{$profile['address']}}
{{$profile['hp']}}
{{$profile['email']}}

No : {{$invoice['invoice']}}
Tgl: {{$invoice['created_at']}}
Kasir: Admin

Customer : {{$customer}}
Payment Method : {{$type_payment}}

@php $total = 0; @endphp @foreach($detail as $d) @php $subtotal = $d->qty_out * $d->price_sell; $total += $subtotal; @endphp @endforeach
{{ $d->name }}
{{ $d->qty_out }} x {{ number_format($d->price_sell,0,',','.') }} {{ number_format($subtotal,0,',','.') }}

@php $ppnPersen = ($total * $ppn) / 100; // default 0 $addPrice = 0; // HANYA tampil jika payment = credit if(strtolower($type_payment) === 'credit'){ $addPrice = $additional_price ?? 0; } $grandTotal = $total + $ppnPersen + $addPrice; @endphp @if(strtolower($type_payment) == 'credit' && $addPrice > 0) @endif
Total {{ number_format($total,0,',','.') }}
PPN {{ $ppn }}% {{ number_format($ppnPersen,0,',','.') }}
Additional Price {{ number_format($addPrice,0,',','.') }}
Grand Total {{ number_format($grandTotal,0,',','.') }}

Terima Kasih
Barang yang sudah dibeli
tidak dapat dikembalikan