@extends('shop.layout') @section('title', 'Comanda ' . $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
Comanda
#{{ $order->number }}
{{ $statuses[$order->status] ?? $order->status }}
@if ($order->status !== 'cancelled')

Status

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

Produse

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

Date livrare

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

@if ($order->address)

{{ $order->address }}

@endif
← Continuă cumpărăturile
@endsection