@extends('shop.layout') @section('title', __('portal.shop.order_number') . ' ' . $order->number) @section('content') @php $currency = $tenant->settings['currency'] ?? 'MDL'; $statuses = \App\Models\Tenant\OnlineOrder::STATUSES; $delivery = \App\Models\Tenant\OnlineOrder::DELIVERY; $flow = ['new', 'confirmed', 'packed', 'shipped', 'delivered']; $idx = array_search($order->status, $flow, true); @endphp
{{ __('portal.shop.order_number') }}
#{{ $order->number }}
{{ $statuses[$order->status] ?? $order->status }}
@if ($order->status !== 'cancelled')

{{ __('portal.shop.status') }}

@foreach ($flow as $i => $st)
{{ $statuses[$st] }}
@endforeach
@endif

{{ __('portal.shop.products') }}

@foreach ($order->items as $it) @endforeach
{{ $it->name }} ×{{ rtrim(rtrim(number_format((float)$it->qty,2),'0'),'.') }} {{ number_format((float) $it->total, 2) }} {{ $currency }}
{{ __('portal.shop.delivery') }} ({{ $delivery[$order->delivery_method] ?? $order->delivery_method }}) {{ number_format((float) $order->delivery_fee, 2) }} {{ $currency }}
{{ __('portal.common.total') }} {{ number_format((float) $order->total, 2) }} {{ $currency }}

{{ __('portal.shop.delivery_data') }}

{{ $order->customer_name }} · {{ $order->customer_phone }}

@if ($order->address)

{{ $order->address }}

@endif
{{ __('portal.shop.continue_shopping') }}
@endsection