@extends('layouts.app') @section('title', 'Detail Transaksi') @section('content')
Kembali ke riwayat

{{ $transaction->code }}

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

{{ ucfirst($transaction->status) }}

Alamat Toko (Pickup)

{{ config('store.address') }}

Telepon Toko

{{ config('store.phone') }}

Jam Pengambilan

{{ optional($transaction->pickup_at)->format('d F Y, H:i') ?? '-' }}

Telepon Pembeli

{{ $transaction->phone }}

Item pesanan

    @foreach($transaction->details as $d)
  • {{ $d->product->name }} × {{ $d->quantity }} Rp {{ number_format($d->subtotal, 0, ',', '.') }}
  • @endforeach

Total: Rp {{ number_format($transaction->total, 0, ',', '.') }}

@endsection