@extends('layouts.app') @section('title', 'Pesanan Berhasil Dibuat #' . $order->id) @push('styles') @endpush @section('content')
{{-- Hero Sukses --}}

Pesanan Anda Berhasil Dibuat!

Terima kasih telah berbelanja di Adel Fashion. Rincian pesanan Anda telah tersimpan dengan aman di database.

Nomor Pesanan: #ORD-{{ str_pad($order->id, 5, '0', STR_PAD_LEFT) }}
{{-- Detail Informasi Order --}}
Ringkasan Informasi Pesanan Status: {{ $order->status }}
Tanggal Pesanan:
{{ $order->created_at->format('d M Y, H:i') }} WIB
Nama Pemesan:
{{ $order->user->name ?? session('user_name', 'Buyer') }}
Nomor Telepon:
{{ $order->phone_number ?? '-' }}
Status Pembayaran:
Menunggu Konfirmasi (Pending)
Alamat Pengiriman:
{{ $order->shipping_address ?? '-' }}
@if ($order->notes)
Catatan Tambahan:
"{{ $order->notes }}"
@endif
{{-- Tabel Daftar Produk (OrderItems) --}}
Busana yang Dipesan
@foreach ($order->orderItems as $item) @endforeach
Busana Harga Satuan Jumlah Subtotal
@php $imgUrl = $item->product ? $item->product->image_url : null; @endphp @if ($imgUrl) {{ $item->product->name ?? 'Produk' }} @else
@endif
{{ $item->product->name ?? 'Produk #' . $item->product_id }}
ID Busana: #{{ $item->product_id }}
Rp {{ number_format($item->price, 0, ',', '.') }} {{ $item->quantity }} Rp {{ number_format($item->subtotal, 0, ',', '.') }}
Total Pembayaran: Rp {{ number_format($order->total ?? $order->total_price, 0, ',', '.') }}
{{-- Petunjuk Alur Selanjutnya --}}
Informasi Pemesanan: Pesanan Anda telah tercatat dengan status awal Pending. Stok busana telah otomatis dikurangi dan keranjang belanja Anda telah dikosongkan. Tim butik Adel Fashion akan segera memverifikasi pesanan Anda sebelum proses pengiriman kurir.
{{-- Tombol Navigasi --}}
@endsection