48 lines
2.6 KiB
PHP
48 lines
2.6 KiB
PHP
@extends('layouts.layout')
|
|
|
|
@section('title', __('Mes Commandes'))
|
|
@section('description', 'Récapitulatif de vos commandes.')
|
|
|
|
@section('content')
|
|
<main class="auth-login container d-flex justify-content-center align-items-center">
|
|
<div class="row">
|
|
<div class="col my-5">
|
|
<h1 class="title-medium font-Barlow-extra-bold text-uppercase text-grey text-center">Mes Commandes</h1>
|
|
<div class="section section_white">
|
|
<div class="wrapper-inner">
|
|
<div class="order_recap">
|
|
@if(count($orders) > 0)
|
|
<table class="table table-borderless">
|
|
<thead>
|
|
<tr class="border-bottom border-dark border-2 font-Barlow-medium">
|
|
<th scope="col" class="text-center align-middle">Référence</th>
|
|
<th scope="col" class="text-center align-middle">Date</th>
|
|
<th scope="col" class="text-center align-middle">Total en €</th>
|
|
<th scope="col" class="text-center align-middle">Statut</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($orders as $order)
|
|
<tr>
|
|
<th scope="col" class="text-center align-middle">
|
|
<a href="{{route('account.order-detail', $order->reference)}}" class="btn btn-product rounded-4">{{$order->reference}}</a>
|
|
</th>
|
|
<th scope="col" class="text-center align-middle">
|
|
{{\Carbon\Carbon::parse($order->date)->format('d/m/Y')}}
|
|
</th>
|
|
<th scope="col" class="text-center align-middle">@fmt_currency($order->total)</th>
|
|
<th scope="col" class="text-center align-middle">{{ $order->status->label }}</th>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
@else
|
|
<p class="text-center">Vous n'avez aucunes commandes</p>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endsection
|