@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @php $breadcrumbItems = [ ['label' => 'Đơn hàng', 'url' => route('show-order.index')], ['label' => 'Thông tin đơn hàng'] ]; @endphp @section('content') @include('layouts.header')
Thông tin đơn hàng #{{ $order->order_id }}
{{ $order->status }}
Thông tin khách hàng
Họ tên: {{ $order->user->full_name }}
Email: {{ $order->user->email ?? 'N/A' }}
Số điện thoại: {{ $order->user->phone ?? 'N/A' }}
Ngày đặt hàng: {{ $order->created_at->format('d/m/Y H:i') }}
Phương thức thanh toán: @if($order->payment_method === 'cod') Thanh toán tại quầy @elseif($order->payment_method === 'bank') Thanh toán qua VNPay @else Không xác định @endif
Danh sách sản phẩm
@php $total = 0; @endphp @foreach($order->items as $index => $item) @php $subtotal = $item->price * $item->quantity; $total += $subtotal; @endphp @endforeach
# Tên sản phẩm Giá Số lượng Màu Sắc Kích thước Thành tiền
{{ $index + 1 }} {{ $item->product->product_name }} {{ number_format($item->price, 0, ',', '.') }} đ {{ $item->quantity }} {{ $item->color ?? 'Không rõ' }} {{ $item->size ?? 'Không rõ' }} {{ number_format($subtotal, 0, ',', '.') }} đ
Tổng cộng: {{ number_format($total, 0, ',', '.') }} đ
Quay lại danh sách
@endsection