@extends('backoffice.layouts.app') @section('content')

Order #{{ $order->id }} Details

Back to Orders
Order Summary

Status: {{ ucwords(str_replace('_', ' ', $order->status)) }}

Created At: {{ $order->created_at->format('d M, Y h:i A') }}

Updated At: {{ $order->updated_at->format('d M, Y h:i A') }}

Customer Info
@if (!empty($order->email))

Recipient’s Name: {{ $order->name ?? 'Guest' }} {{ $order->user->last_name ?? '' }}

@endif @if (!empty($order->email))

Recipient's Email: {{ $order->email ?? 'N/A' }}

@endif @if (!empty($order->code) || !empty($order->number))

Recipient's Phone: {{ $order->code ?? 'N/A' }}-{{ $order->number ?? 'N/A' }}

@endif @if (!empty($order->area))

Area: {{ $order->area ?? 'N/A' }}

@endif @if (!empty($order->address))

Address: {{ $order->address ?? 'N/A' }}

@endif
Order Items
@foreach ($order->items as $index => $item) @endforeach
# Product Qty Personal Message Note Choose File Unit Price Total
{{ $index + 1 }} {{ $item->name }} {{ $item->qty }} @if (!empty($item->personal_message)) {{ $item->personal_message ?? '' }} @else - @endif @if (!empty($item->note)) {{ $item->note ?? '' }} @else - @endif @if (!empty($item->file)) View @else - @endif ${{ number_format($item->price, 2) }} ${{ number_format($item->qty * $item->price, 2) }}
Order Totals

Subtotal: ${{ number_format($order->subtotal, 2) }}

Shipping: ${{ number_format($order->shipping, 2) }}

Grand Total: ${{ number_format($order->grand_total, 2) }}

@endsection