@extends('layouts.app') @section('title', 'Invoice ' . $transaction->code) @section('content')
Invoice
Tanggal: {{ $transaction->created_at->format('d F Y, H:i') }}
Status
Total
Rp {{ number_format($transaction->total, 0, ',', '.') }}
Data Pembeli
{{ $transaction->user->name ?? '-' }}
Telp pembeli: {{ $transaction->phone }}
Informasi Pickup Toko
{{ config('store.name') }}
{{ config('store.address') }}
Telp toko: {{ config('store.phone') }}
Jam pengambilan: {{ optional($transaction->pickup_at)->format('d F Y, H:i') ?? '-' }}
Detail item
| Produk | Qty | Harga | Subtotal |
|---|---|---|---|
| {{ $d->product->name ?? '-' }} | {{ $d->quantity }} | Rp {{ number_format($d->price, 0, ',', '.') }} | Rp {{ number_format($d->subtotal, 0, ',', '.') }} |
| Total | Rp {{ number_format($transaction->total, 0, ',', '.') }} | ||