@extends('fo.layouts.layout') @section('title', __('My Orders')) @section('description', __('My Orders')) @section('content')

{{ __('My Orders') }}

{{-- Pagination Haut --}} @if ($orders->count() > \Domain\Enums\Pagination\ItemsPerPaginationEnum::twelve->value())
{{ $orders->withQueryString()->onEachSide(1)->links() }}
@endif @if (count($orders) > 0) {{-- VUE BUREAU : Tableau standard Bootstrap (Caché sur mobile) --}}
@foreach ($orders as $order) @endforeach
{{ __('Reference') }} {{ __('Date') }} {{ __('Total') }} {{ __('Status') }}
{{ $order->reference }} {{ $order->created_at->isoFormat('ddd DD/MM/Y') }} @money($order->total) {{ $order->status->label() }}
{{-- VUE MOBILE : Cartes (Cachées sur bureau) --}}
@foreach ($orders as $order)
{{ __('Reference') }} {{ $order->reference }}
{{ __('Date') }} {{ $order->created_at->isoFormat('ddd DD/MM/Y') }}
{{ __('Total') }} @money($order->total)
{{ __('Status') }} {{ $order->status->label() }}
@endforeach
@else

{{ __('You have no orders') }}

@endif {{-- Pagination Bas --}}
{{ $orders->withQueryString()->onEachSide(1)->links() }}
@endsection