@extends('layouts.app') @section('title', 'Invoice ' . $sale->invoice_number) @section('content')
← Kembali ke riwayat

{{ config('app.name', 'Toko Bangunan') }}

{{ $sale->invoice_number }}

{{ $sale->created_at->format('d M Y, H:i') }}

Kasir{{ $sale->cashier?->name }}
@if ($sale->customer_name)
Pelanggan{{ $sale->customer_name }}
@endif
@foreach ($sale->items as $item) @endforeach
Item Qty Harga Subtotal
{{ $item->product_name }} {{ $item->quantity }} {{ number_format($item->unit_price, 0, ',', '.') }} {{ number_format($item->subtotal, 0, ',', '.') }}
SubtotalRp {{ number_format($sale->subtotal, 0, ',', '.') }}
Diskon- Rp {{ number_format($sale->discount, 0, ',', '.') }}
TotalRp {{ number_format($sale->total, 0, ',', '.') }}
Dibayar ({{ strtoupper($sale->payment_method) }}) Rp {{ number_format($sale->paid_amount, 0, ',', '.') }}
@if ($sale->outstandingBalance() > 0)
Sisa Piutang Rp {{ number_format($sale->outstandingBalance(), 0, ',', '.') }}
@endif

Terima kasih atas kunjungan Anda 🙏

@endsection