@extends('frontend.layouts.app') @section('title-suffix') {{ __('tracking.title') }} @endsection @push('styles') @endpush @section('main-content')
@if (!$order)

{{ __('tracking.trace-no-order') }}

@else

{{ __('tracking.title') }}

Commande du client

status == 'Nouvelle') class="step-new" @elseif ($order->status == 'Annulée') class="step-canceled" @else class="step-past" @endif> {{ __('tracking.trace-status-order') }}

Préparation de la commande

status == 'Nouvelle') class="step-present" @elseif ($order->status == 'Annulée') class="step-canceled" @else class="step-past" @endif> {{ __('tracking.trace-status-preparation') }}

Livraison

status == 'Nouvelle') class="step-future" @elseif ($order->status == 'Traitée') class="step-present" @elseif ($order->status == 'Annulée') class="step-canceled" @else class="step-past" @endif> {{ __('tracking.trace-status-shipping') }}

Réception de la commande

status == 'Livrée') class="step-present" @elseif ($order->status == 'Annulée') class="step-canceled" @else class="step-future" @endif> {{ __('tracking.trace-status-reception') }}

{{ __('tracking.trace-order-details') }}

@if (!isset($products)) @else @php $sub_total = 0; @endphp @foreach ($products as $key => $product) @php $sub_total += $product['total']; @endphp @endforeach @endif
{{ __('tracking.trace-thead-product') }} {{ __('tracking.trace-thead-quantity') }} {{ __('Total') }}
{{ __('tracking.trace-no-products') }}
{{ $product['name'] }} {{ $product['quantity'] }} {{ $product['total'] }} FCFA
{{ __('tracking.trace-subtotal') }} {{ $sub_total ?? 0 }} FCFA
{{ __('tracking.trace-status-shipping') }} {{ __('tracking.trace-flat-rate') }}{{ $shipping_cost ?? 0 }} FCFA
{{ __('Total') }}  {{ $sub_total + $shipping_cost ?? 0 }} FCFA
{{--

------------------>

Image par GrumpyBeere de Pixabay

------------------>

--}} @endif
@endsection {{-- @push('scripts') @endpush --}}