@php $total = 0 @endphp
@forelse($shoppingCart as $key => $panier)
{{ $panier->name }}
{{$panier->note}} / 5 @include('components.star', ['note' => $panier->note]) |
{{ \App\SubCategory::find($panier->sub_category_id)->category->name }} >
{{ \App\SubCategory::find($panier->sub_category_id)->name }} |
{{sizeof($panier->comments)}} commentaires
{{ $panier->price }} €
@if(\Auth::check())
Envoyer ce cadeaux à :
Pour recevoir votre cadeau sur votre adresse mail ({{\Auth::user()->email ?? ''}}), ne remplissez pas ces champs
@endif
@php $total += $panier->price @endphp
@empty
Il n'y a pas de panier
Retouner à l'accueil pour trouver des activités à ajouter ici
@endforelse
@if($total != 0)
{{-- Total = {{$total}} --}}
@endif