@extends('layouts.app') @section('title', __('Order Details') . ' - #' . ($order->order_number ?? $order->daily_number)) @section('content')

{{ __('Order') }} #{{ $order->order_number ?? $order->daily_number }}

{{ __('Back to Dashboard') }}
{{ __('Order Items') }}
@foreach($order->items as $item) @endforeach @if($order->discount > 0) @endif
{{ __('messages.product') ?? 'Product' }} {{ __('Price') }} {{ __('Qty') }} {{ __('messages.total') ?? 'Total' }}
{{ $item->product->name ?? 'Unknown Product' }}
{{ $item->product->category->name ?? '' }}
${{ number_format($item->price, 2) }} x{{ $item->quantity }} ${{ number_format($item->item_total, 2) }}
{{ __('messages.subtotal') ?? 'Subtotal' }} ${{ number_format($order->items->sum('item_total'), 2) }}
{{ __('messages.tax') ?? 'Tax (VAT)' }} + ${{ number_format($order->tax, 2) }}
{{ __('Discount') }} - ${{ number_format($order->discount, 2) }}
{{ __('Total Amount') }} ${{ number_format($order->total_amount, 2) }}
{{ __('Order Notes') }}

{{ $order->notes ?? __('No special instructions provided for this order.') }}

{{ __('Payment Summary') }}
{{ __('Amount Paid') }}: ${{ number_format($order->paid_amount, 2) }}
{{ __('Balance') }}: ${{ number_format($order->total_amount - $order->paid_amount, 2) }}
{{ __('Metadata & Status') }}
{{ __($order->status) }}
{{ __('messages.' . $order->type) ?? ucfirst(str_replace('_', ' ', $order->type)) }}
@if($order->is_offline)
{{ __('Offline Sync') }}
@else
{{ __('Real-time Online') }}
@endif
{{ __('Personnel & Location') }}
{{ __('Cashier') }} {{ $order->cashier->name ?? __('System') }}
{{ __('Branch') }} {{ $order->branch->name ?? __('Central') }}
@if($order->table_id)
{{ __('Table / Zone') }} {{ $order->table->number }} ({{ $order->table->zone->name ?? __('General') }})
@endif @if($order->driver_id)
{{ __('Delivery Driver') }} {{ $order->driver->name ?? 'N/A' }}
@endif
@endsection