@extends('layouts.app') @section('title', 'Detail Pesanan ' . $order->order_number . ' - ' . setting('store_name')) @section('content')
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif

Informasi Pesanan

{{ $order->order_number }}

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

@php $statusClasses = [ 'pending_payment' => 'bg-yellow-500/20 text-yellow-400 border-yellow-500/30', 'paid' => 'bg-blue-500/20 text-blue-400 border-blue-500/30', 'processing' => 'bg-indigo-500/20 text-indigo-400 border-indigo-500/30', 'shipped' => 'bg-purple-500/20 text-purple-400 border-purple-500/30', 'delivered' => 'bg-green-500/20 text-green-400 border-green-500/30', 'cancelled' => 'bg-red-500/20 text-red-400 border-red-500/30', ]; $statusLabels = [ 'pending_payment' => 'Menunggu Pembayaran', 'paid' => 'Sudah Dibayar', 'processing' => 'Sedang Diproses', 'shipped' => 'Dikirim', 'delivered' => 'Selesai', 'cancelled' => 'Dibatalkan', ]; @endphp {{ $statusLabels[$order->status] ?? $order->status }} @if($order->tracking_number)

Resi: {{ $order->courier }}

{{ $order->tracking_number }}

@endif

Produk yang Dibeli

@foreach($order->items as $item)

{{ $item->product_name }}

{{ $item->variant_name ?: 'No Variant' }}

{{ $item->quantity }} x Rp {{ number_format($item->price, 0, ',', '.') }}

Rp {{ number_format($item->subtotal, 0, ',', '.') }}

@endforeach

Informasi Pengiriman

{{ $order->recipient_name }}

{{ $order->recipient_phone }}

{{ $order->shipping_address }}

{{ $order->district }}, {{ $order->city }}, {{ $order->province }} {{ $order->postal_code }}

Kurir

{{ $order->courier_service_name }} ({{ $order->estimated_days }})

Informasi Pembayaran

{{ str_replace('_', ' ', $order->payment_method) }}
{{ $order->payment_status === 'paid' ? 'LUNAS' : 'MENUNGGU PEMBAYARAN' }}
Subtotal Rp {{ number_format($order->subtotal, 0, ',', '.') }}
Ongkos Kirim Rp {{ number_format($order->shipping_cost, 0, ',', '.') }}
Total Pembayaran Rp {{ number_format($order->total, 0, ',', '.') }}
@if($order->status === 'pending_payment' && in_array($order->payment_method, ['manual_transfer', 'manual_qris']))

Instruksi Pembayaran

@if($order->payment_method === 'manual_transfer')

{{ setting('payment_bank_name') }}

{{ setting('payment_bank_number') }}

a.n. {{ setting('payment_bank_holder') }}

@elseif($order->payment_method === 'manual_qris')

Scan QRIS a.n. {{ setting('store_name') }}

@endif @if(setting('payment_manual_instructions'))
{{ setting('payment_manual_instructions') }}
@endif

Pastikan Anda mentransfer sesuai nominal total hingga digit terakhir.

@endif @if($order->status === 'pending_payment' && $order->payment_method === 'payment_gateway')

Selesaikan Pembayaran

Silakan klik tombol di bawah untuk membayar melalui gerai retail, E-wallet, atau VA pilihan Anda.

Bayar Sekarang
@endif

Unggah Bukti Bayar

@csrf

* Format: JPG, PNG. Max: 2MB

@endsection