@extends('admin.layouts.app') @section('title', 'Pesanan #'.$order->order_number) @section('content')

Pesanan #{{ $order->order_number }}

« Kembali
Data Pemesan
Nama: {{ $order->customer_name }}
WA: {{ $order->customer_phone }}
Email: {{ $order->customer_email }}
Alamat: {{ $order->shipping_address }}, {{ $order->shipping_city }}
Produk
{{-- Desktop table --}}
@foreach($order->items as $item) @endforeach
Produk Harga Qty Varian Subtotal
{{ $item->product_name }} Rp {{ number_format($item->product_price, 0, ',', '.') }} {{ $item->qty }} @if($item->size) Uk: {{ $item->size }} @endif @if($item->color) / {{ explode('|', $item->color)[1] ?? $item->color }} @endif Rp {{ number_format($item->subtotal, 0, ',', '.') }}
{{-- Mobile card list --}}
@foreach($order->items as $item)
{{ $item->product_name }}
{{ $item->qty }}x @ Rp {{ number_format($item->product_price, 0, ',', '.') }} @if($item->size) | Uk: {{ $item->size }} @endif @if($item->color) | {{ explode('|', $item->color)[1] ?? $item->color }} @endif
Rp {{ number_format($item->subtotal, 0, ',', '.') }}
@endforeach

Subtotal Rp {{ number_format($order->total_price, 0, ',', '.') }}
Ongkos Kirim Rp {{ number_format($order->shipping_cost, 0, ',', '.') }}
Grand Total Rp {{ number_format($order->grand_total, 0, ',', '.') }}
Informasi Pengiriman
@if($order->courier || $order->tracking_number)
Kurir: {{ $order->courier ?? '-' }} {{ $order->courier_service ?? '' }}
Resi: {{ $order->tracking_number ?? '-' }}
@else

Belum ada data pengiriman.

@endif @if($order->notes)
Catatan:

{{ $order->notes }}

@endif
Status Pesanan
Pembayaran: @if($order->payment_status === 'paid') Lunas {{ $order->paid_at ? $order->paid_at->format('d M Y H:i') : '' }} @else Pending @endif
Metode: @if($order->payment_method === 'midtrans') Midtrans @else {{ $order->bank_name }} - {{ $order->bank_account_number }} @endif
Deadline: {{ $order->payment_due_at ? $order->payment_due_at->format('d M Y H:i') : '-' }}
@if($order->payment_status === 'pending')
Konfirmasi Pembayaran
@csrf

Tandai bahwa pembayaran sudah diterima.

@endif
Update Status
@csrf
@endsection