@extends('admin.layouts.app') @section('content')
{{-- Main --}}
{{-- Order items --}}

Articles

@foreach ($order->items as $item) @endforeach @if ($order->discount_total > 0) @endif @if ($order->shipping_total > 0) @endif
Produit Qte P.U. Total
{{ $item->product_name }}
@if ($item->sku)
{{ $item->sku }}
@endif @foreach($item->addons as $addon)
{{ $addon->addon_label }} : {{ $addon->addon_value }}
@endforeach
{{ $item->quantity }} {{ number_format($item->unit_price, 2, ',', ' ') }} € {{ number_format($item->total, 2, ',', ' ') }} €
Sous-total {{ number_format($order->subtotal, 2, ',', ' ') }} €
Remise -{{ number_format($order->discount_total, 2, ',', ' ') }} €
Livraison {{ number_format($order->shipping_total, 2, ',', ' ') }} €
Total {{ number_format($order->total, 2, ',', ' ') }} €
{{-- Billing / Shipping --}}

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 }}

@if ($order->shipping_first_name)

Livraison

{{ $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 }}

@endif
{{-- Sidebar --}}
{{-- Status --}}

Statut

Modifier le statut
@csrf
{{-- Payment --}}

Paiement

Methode : {{ $order->payment_method ?? '—' }}

@if ($order->paid_at)

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

@endif @if ($order->stripe_payment_intent_id)

Stripe : {{ $order->stripe_payment_intent_id }}

@endif
{{-- Tracking --}} @if ($order->tracking_number)

Suivi

@php $trackingUrl = $order->tracking_url ?? match(strtolower($order->tracking_carrier ?? '')) { 'colissimo' => 'https://www.laposte.fr/outils/suivre-vos-envois?code=' . $order->tracking_number, 'chronopost' => 'https://www.chronopost.fr/tracking-no-powerful/tracking/searchByRef?liession=on&searchType=ref&shipNumber=' . $order->tracking_number, 'mondial relay', 'mondialrelay' => 'https://www.mondialrelay.fr/suivi-de-colis/?NumeroExpedition=' . $order->tracking_number, default => null, }; @endphp
@if ($order->tracking_carrier)

Transporteur : {{ $order->tracking_carrier }}

@endif

N° suivi : @if ($trackingUrl) {{ $order->tracking_number }} @else {{ $order->tracking_number }} @endif

@endif {{-- Expédition --}} @if (in_array($order->status, ['processing', 'shipped']) && $order->shipping_key !== 'pickup') @if ($order->shipping_key === 'colissimo') {{-- Colissimo : saisie manuelle du suivi --}}

Expédition Colissimo

@if ($order->tracking_number)

N° suivi : {{ $order->tracking_number }}

Suivre sur La Poste
@else
@csrf @method('PUT')
@endif
@else {{-- Boxtal (Mondial Relay, Chronopost, etc.) --}}

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 Étiquette en préparation — voir sur Boxtal @endif
@csrf @method('DELETE')
@else
@csrf

@if ($order->relay_network === 'MONR_NETWORK') Mondial Relay @elseif ($order->relay_network === 'CHRP_NETWORK') Chronopost @else {{ $order->shipping_method ?? 'Expédition' }} @endif @if ($order->relay_point_code)
Relais : {{ $order->relay_point_code }} @endif

@php $pkg = config('shipping.boxtal.default_package'); @endphp
@endif
@endif @endif {{-- Gift wrap --}} @if ($order->gift_wrap)

Boîte / sac cadeau

Type : {{ $order->gift_type === 'boite' ? 'Boîte cadeau' : 'Sac cadeau' }}

@if ($order->gift_message)

Message :

{{ $order->gift_message }}

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

Note client

{{ $order->customer_note }}

@endif {{-- Date --}}

Date

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

@endsection