@extends('admin.layouts.app') @section('title', $order->reference) @section('page-title', __('admin.menu.orders').' — '.$order->reference) @section('page-actions') {{ __('admin.actions.back') }} @endsection @section('content')
{{ __('admin.fields.customer') }}
@include('admin.partials.detail-row', ['label' => __('admin.fields.customer'), 'value' => $order->user?->name]) @include('admin.partials.detail-row', ['label' => __('admin.fields.contact_name'), 'value' => $order->contact_name]) @include('admin.partials.detail-row', ['label' => __('admin.fields.phone'), 'value' => $order->phone]) @include('admin.partials.detail-row', ['label' => __('admin.fields.city'), 'value' => $order->city]) @include('admin.partials.detail-row', ['label' => __('admin.fields.sector'), 'value' => $order->sector?->name]) @include('admin.partials.detail-row', ['label' => __('admin.fields.payment_method'), 'value' => __('statuses.payment_method.'.$order->payment_method)])
{{ __('admin.fields.address') }}
{{ $order->shipping_address ?: '—' }}
@if ($order->notes)
{{ __('admin.fields.notes') }}
{{ $order->notes }}
@endif
{{ __('admin.fields.items') }}
@foreach ($order->items as $item) @endforeach
{{ __('admin.fields.name') }} {{ __('admin.fields.sku') }} {{ __('admin.fields.price') }} {{ __('admin.fields.quantity') }} {{ __('admin.fields.total') }}
{{ $item->product_name }} {{ $item->sku }} {{ number_format((float) $item->unit_price, 2) }} {{ $item->quantity }} {{ number_format((float) $item->total, 2) }}
{{ __('admin.fields.subtotal') }} {{ number_format((float) $order->subtotal, 2) }}
{{ __('admin.fields.shipping_cost') }} {{ number_format((float) $order->shipping_cost, 2) }}
{{ __('admin.fields.tax') }} {{ number_format((float) $order->tax, 2) }}
{{ __('admin.fields.total') }} {{ number_format((float) $order->total, 2) }} {{ $order->currency }}
@if ($order->statusLogs->isNotEmpty())
{{ __('admin.actions.change_status') }}
    @foreach ($order->statusLogs as $log)
  • @include('admin.partials.badge-status', ['label' => __('statuses.order.'.$log->status), 'status' => $log->status])
    {{ $log->note }}
    {{ $log->user?->name }} · {{ $log->created_at->format('Y-m-d H:i') }}
  • @endforeach
@endif
{{ __('admin.actions.change_status') }}
@csrf @method('PUT')
@endsection