@extends('layouts.app') @section('title', 'Invoice ' . $transaction->code) @section('content')
Kembali ke daftar transaksi Cetak Invoice

Invoice

{{ $transaction->code }}

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

Status

{{ ucfirst($transaction->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

@foreach($transaction->details as $d) @endforeach
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, ',', '.') }}
@endsection