@extends('admin.layouts.app') @section('content')
{{-- Left column: items + addresses --}}
{{-- Items --}}

Articles

{{ $order->items->count() }} article(s)
@foreach($order->items as $item) @endforeach
Produit Prix unit. Qté Total
{{ $item->product_name }}
@if($item->sku)
SKU: {{ $item->sku }}
@endif @foreach($item->addons as $addon)
+ {{ $addon->addon_label }}: {{ $addon->addon_value }} @if($addon->addon_price > 0) ({{ number_format($addon->addon_price, 2, ',', ' ') }} €) @endif
@endforeach
{{ number_format($item->unit_price, 2, ',', ' ') }} € {{ $item->quantity }} {{ number_format($item->total, 2, ',', ' ') }} €
{{-- Totals --}}
Sous-total {{ number_format($order->subtotal, 2, ',', ' ') }} €
@if($order->discount_total > 0)
Remise{{ $order->coupon_code ? ' ('.$order->coupon_code.')' : '' }} -{{ number_format($order->discount_total, 2, ',', ' ') }} €
@endif
Livraison ({{ $order->shipping_method ?? '-' }}) @if($order->shipping_total > 0) {{ number_format($order->shipping_total, 2, ',', ' ') }} € @else Gratuit @endif
Total {{ number_format($order->total, 2, ',', ' ') }} €
{{-- Addresses --}}
{{-- Billing --}}

Adresse de facturation

{{ $order->billing_first_name }} {{ $order->billing_last_name }}

{{ $order->billing_address_1 }}

@if($order->billing_address_2)

{{ $order->billing_address_2 }}

@endif

{{ $order->billing_postcode }} {{ $order->billing_city }}

{{ $order->billing_country }}

@if($order->billing_phone)

Tel: {{ $order->billing_phone }}

@endif

{{ $order->billing_email }}

{{-- Shipping --}}

Adresse de livraison

@if($order->shipping_address_1)

{{ $order->shipping_first_name }} {{ $order->shipping_last_name }}

{{ $order->shipping_address_1 }}

@if($order->shipping_address_2)

{{ $order->shipping_address_2 }}

@endif

{{ $order->shipping_postcode }} {{ $order->shipping_city }}

{{ $order->shipping_country }}

@else

Identique a la facturation

@endif @if($order->relay_point_code)

Point relais: {{ $order->relay_point_code }}

@endif
{{-- Customer note --}} @if($order->customer_note)

Note du client

{{ $order->customer_note }}

@endif
{{-- Right column: status, payment, actions --}}
{{-- Status & actions --}}

Statut & actions

@csrf @method('PUT')
{{-- Payment info --}}

Paiement

Methode {{ ucfirst($order->payment_method ?? '-') }}
Payé le {{ $order->paid_at ? $order->paid_at->format('d/m/Y H:i') : 'Non payé' }}
@if($order->stripe_payment_intent_id)
Stripe PI {{ Str::limit($order->stripe_payment_intent_id, 20) }}
@endif
{{-- Quick actions --}}

Actions rapides

Telecharger la facture @if(!$order->isPaid())
@csrf @method('DELETE')
@endif
{{-- Expédition Boxtal --}} @if(in_array($order->shipping_key, ['boxtal', 'boxtal_intl']) || str_contains(strtolower($order->shipping_method ?? ''), 'relais'))

Boxtal

@if($order->boxtal_shipping_order_id)

ID expédition : {{ $order->boxtal_shipping_order_id }}

@if($order->boxtal_label_url) Voir / imprimer l'étiquette @else Récupérer l'étiquette @endif
@csrf @method('DELETE')
@else
@csrf

@if($order->relay_network === 'MONR_NETWORK') Mondial Relay @elseif($order->relay_network === 'CHRP_NETWORK') Chronopost @else Point relais @endif @if($order->relay_point_code)
Relais : {{ $order->relay_point_code }} @endif

@php $pkg = config('shipping.boxtal.default_package'); @endphp
@endif
@endif {{-- Timeline --}}

Chronologie

Commande créée
{{ $order->created_at->format('d/m/Y a H:i') }}
@if($order->paid_at)
Paiement recu
{{ $order->paid_at->format('d/m/Y a H:i') }}
@endif @if($order->shipped_at)
Expédiée
{{ $order->shipped_at->format('d/m/Y a H:i') }}
@endif
@endsection