@extends('layouts.admin') @section('title', 'Detail Pengguna: ' . $user->name) @section('styles') @endsection @section('content') {{-- Breadcrumb --}}
{{ $user->email }}
| No. Pesanan | Tanggal | Total | Status | Aksi |
|---|---|---|---|---|
| #{{ $order->order_number }} | {{ $order->created_at->format('d M Y, H:i') }} | Rp {{ number_format($order->total, 0, ',', '.') }} | @php $badges = [ 'pending' => ['bg-warning text-dark', 'Menunggu'], 'processing' => ['bg-info text-dark', 'Diproses'], 'shipped' => ['bg-primary text-white', 'Dikirim'], 'completed' => ['bg-success text-white', 'Selesai'], 'cancelled' => ['bg-danger text-white', 'Dibatalkan'], ]; $b = $badges[$order->status] ?? ['bg-secondary text-white', $order->status]; @endphp {{ $b[1] }} | Detail |
| Pelanggan ini belum pernah melakukan pemesanan. | ||||