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

{{ $order->order_number }}

{{ $order->created_at->format('Y-m-d H:i') }}

{{ __('app.back') }}

{{ __('app.order_details') }}

{{ __('app.order_number') }}
{{ $order->order_number }}
{{ __('app.order_date') }}
{{ $order->created_at->format('Y-m-d H:i') }}
{{ __('app.order_status') }}
@php $sc = ['pending'=>'bg-amber-100 text-amber-700','confirmed'=>'bg-blue-100 text-blue-700','shipped'=>'bg-indigo-100 text-indigo-700','delivered'=>'bg-emerald-100 text-emerald-700','cancelled'=>'bg-red-100 text-red-700'][$order->status] ?? 'bg-gray-100 text-gray-700'; @endphp {{ __('app.' . $order->status) }}
{{ __('app.payment_method') }}
{{ __('app.cod') }}
{{ __('app.payment_status') }}
{{ __('app.' . $order->payment_status) }}
{{ __('app.total') }}
{{ number_format($order->total, 2) }} {{ __('app.jod') }}

{{ __('app.customer_info') }}

{{ __('app.customer_name') }}
{{ $order->customer_name }}
{{ __('app.phone') }}
{{ $order->customer_phone }}
{{ __('app.customer_email') }}
{{ $order->customer_email ?? '—' }}
{{ __('app.city') }}
{{ $order->city ?? '—' }}
{{ __('app.address') }}
{{ $order->shipping_address }}
@if($order->notes)
{{ __('app.notes') }}
{{ $order->notes }}
@endif

{{ __('app.update_status') }}

@csrf @method('PATCH')

{{ __('app.products') }}

@foreach($order->items as $item) @endforeach
{{ __('app.product') }} {{ __('app.sku') }} {{ __('app.unit_price') }} {{ __('app.quantity') }} {{ __('app.total') }}
{{ $item->product_name }} {{ $item->product_sku }} {{ number_format($item->unit_price, 2) }} {{ __('app.jod') }} {{ $item->quantity }} {{ number_format($item->total, 2) }} {{ __('app.jod') }}
{{ __('app.total') }} {{ number_format($order->total, 2) }} {{ __('app.jod') }}
@endsection