@extends('layouts.app') @section('title', 'Detail Pesanan '.$order->code) @section('content') @php $statusColors = ['amber' => '#737373', 'blue' => '#525252', 'green' => '#111111', 'red' => '#d63031', 'gray' => '#737373']; $nextStatuses = array_filter([ \App\Models\Order::STATUS_PAID => 'Tandai Dibayar', \App\Models\Order::STATUS_COMPLETED => 'Tandai Selesai', \App\Models\Order::STATUS_CANCELLED => 'Batalkan', ], fn ($label, $key) => $key !== $order->status, ARRAY_FILTER_USE_BOTH); @endphp
Dibuat {{ $order->created_at->format('d M Y H:i') }} · {{ $order->payment_method === 'midtrans' ? 'Payment Gateway' : 'WhatsApp' }}
{{ $order->statusLabel() }} @if ($order->paid_at) Dibayar {{ $order->paid_at->format('d M Y H:i') }} @endif
@if ($nextStatuses) @elseTidak ada aksi status tersedia.
@endifNama {{ $order->customer_name }}
Telepon {{ $order->phone }}
@if ($order->email)Email {{ $order->email }}
@endifAlamat {{ $order->address }}
Kota {{ $order->city }}, {{ $order->province }} {{ $order->postal_code }}
Negara {{ $order->country }}
@if ($order->notes)Catatan {{ $order->notes }}
@endif @if ($order->user_id && $order->user)Akun {{ $order->user->email }}
@endif