@extends('layouts.app') @section('title','Detail Penjualan') @section('page-title','Detail Penjualan') @section('content')

{{ $sale->invoice_number }}

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

Selesai
Pelanggan

{{ $sale->customer?->name ?? 'Pelanggan Umum' }}

Metode Bayar

{{ $sale->payment_method_label }}

@if($sale->notes)
Catatan

{{ $sale->notes }}

@endif
@foreach($sale->items as $item) @endforeach @if($sale->discount > 0)@endif @if($sale->tax > 0)@endif
Produk Qty Harga Subtotal
{{ $item->product?->name }} {{ $item->quantity }} Rp {{ number_format($item->unit_price,0,',','.') }} Rp {{ number_format($item->subtotal,0,',','.') }}
Diskon- Rp {{ number_format($sale->discount,0,',','.') }}
PajakRp {{ number_format($sale->tax,0,',','.') }}
TotalRp {{ number_format($sale->total,0,',','.') }}
← Kembali 🖨 Cetak Invoice
@endsection