@extends('layouts.admin') @section('title', __('admin.order').' '.$order->number) @section('breadcrumb', __('admin.orders')) @section('content')

{{ $order->number }}

{{ $order->created_at->translatedFormat('d M Y — H:i') }}
{{ status_label($order->status) }} {{ payment_status_label($order->payment_status) }} {{ __('invoice.view') }} {{ __('invoice.download_pdf') }} {{ __('admin.back') }}

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

@csrf

{{ __('admin.status_notify_help') }}

@if ($order->payment_status !== 'paid')

{{ __('admin.confirm_payment') }}

@csrf
@endif

{{ __('admin.customer') }}

{{ __('admin.name') }}
{{ $order->customer_name }}
{{ __('admin.phone') }}
{{ $order->customer_phone }}
{{ __('admin.email') }}
{{ $order->customer_email ?: '—' }}
{{ __('admin.customer_account') }}
@if ($order->customer) {{ $order->customer->name }} @else {{ __('admin.guest') }} @endif
{{ __('admin.address') }}
{{ $order->address_line }}
{{ __('admin.shipping_zone') }}
{{ $order->shipping_zone_name[app()->getLocale()] ?? collect($order->shipping_zone_name)->first() ?? '—' }}
{{ __('admin.payment_method') }}
{{ $order->payment_method_name }}
@if ($order->notes)
{{ __('admin.customer_notes') }}

{{ $order->notes }}

@endif @if ($order->receipt_path) {{ __('admin.view_receipt') }} @endif
@csrf

{{ __('admin.items') }}

@foreach ($order->items as $item) @endforeach @if ($order->discount > 0) @endif @if ($order->shipping_discount > 0) @endif
{{ __('admin.product') }} {{ __('admin.options') }} {{ __('admin.price') }} {{ __('admin.qty') }} {{ __('admin.total') }}
{{ $item->tr('name') }} {{ collect([$item->size ? size_label($item->size) : null, $item->color ? color_label($item->color) : null, $item->option_text ?: null])->filter()->implode(' · ') ?: '—' }} {{ money($item->unit_price) }} {{ num($item->qty) }} {{ money($item->line_total) }}
{{ __('cart.subtotal') }}{{ money($order->subtotal) }}
{{ __('cart.discount') }}@if ($order->coupon_code) · {{ $order->coupon_code }}@endif−{{ money($order->discount) }}
{{ __('cart.coupon_free_shipping') }}@if ($order->coupon_code) · {{ $order->coupon_code }}@endif{{ __('cart.free') }}
{{ __('cart.shipping') }}{{ money($order->shipping) }}
{{ __('cart.total') }}{{ money($order->total) }}

{{ __('account.history') }}

@foreach ($order->history as $entry)
{{ status_label($entry->status) }} {{ $entry->created_at->translatedFormat('d M Y — H:i') }} @if ($entry->admin) · {{ $entry->admin->name }} @endif @if ($entry->note)

{{ $entry->note }}

@endif
@endforeach

{{ __('admin.admin_note') }}

@csrf
@endsection