@extends('sur-mesure.layouts.app') @section('title', __('surmesure.order') . ' ' . $order->order_number) @section('styles') @endsection @section('content')

{{ __('surmesure.order') }} {{ $order->order_number }}

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

@if($order->payment_status === 'paid' && $order->status !== 'shipped')
@csrf
@endif
@if(session('success'))
{{ session('success') }}
@endif
{{ __('surmesure.customer') }}
{{ $order->buyer->name ?? '—' }}
{{ $order->buyer->email ?? '' }}
{{ $order->buyer->phone ?? '' }}
{{ __('surmesure.status') }}
{{ __('surmesure.payment') }} : {{ $order->payment_status }}
{{ __('surmesure.shipping') }} : {{ $order->status }}
{{ __('surmesure.total') }}
{{ __('surmesure.products') }} : {{ number_format($order->products_total, 2, ',', ' ') }} €
{{ __('surmesure.shipping_cost') }} : {{ number_format($order->shipping_total, 2, ',', ' ') }} €
@if($order->hasOfferedShipping())
{{ __('messages.offered_shipping_cost') }} : - {{ number_format($order->offered_shipping_total ?? 0, 2, ',', ' ') }} €
@endif
{{ number_format($order->total, 2, ',', ' ') }} €
@foreach($order->items as $item)
{{ $item->product_name }}
{{ __('surmesure.quantity') }} : {{ $item->quantity }} @if($item->product?->production_delay_days) · {{ __('surmesure.production_delay') }} : {{ $item->product->production_delay_days }} {{ __('surmesure.days') }} @endif
{{ number_format($item->subtotal, 2, ',', ' ') }} {{ $item->currency }}
{{ number_format($item->unit_price, 2, ',', ' ') }} × {{ $item->quantity }}
@if(!empty($item->selected_variants))
{{ __('surmesure.specs_title') }}
@foreach($item->selected_variants as $label => $value)
{{ $label }}
{{ $value }}
@endforeach
@endif @if(!empty($item->custom_files))
@foreach($item->custom_files as $label => $path) 📎 {{ $label }} @endforeach
@endif @if($item->delivery_mode)
{{ __('surmesure.delivery_mode') }} : {{ __('messages.' . $item->delivery_mode) }} @if($item->relay_point_name) — {{ $item->relay_point_name }}, {{ $item->relay_point_address }} @endif
@endif
@endforeach
@endsection