@extends('dashboard.Boutique.Boutique_template.layouts.grocery.app')
@section("css")
@include("dashboard.Boutique.Boutique_template.layouts.grocery.css_other_page")
@include('dashboard.Boutique.Boutique_template.styles.cart_styles')
@include('dashboard.Boutique.Boutique_template.styles.cart_responsive')
@include('dashboard.Boutique.Boutique_template.styles.modern_order_styles')
@endsection
@section('content')
@php $total=0; @endphp
@if(!isset($status) || $status=="SUCCESS")
@php $helpers=new \App\Http\Controllers\HelperController(); @endphp
@if(isset($commandes))
@if(count($commandes)>0)
@foreach($commandes as $key => $cmd)
@if($cmd->commande_article!=null)
@if(count($cmd->commande_article)>0)
@php
$price=$cmd->total_price;
if($cmd->currency!==\Illuminate\Support\Facades\Session::get('boutique')['meta']['currency_client'])
$price=$helpers->convertCurrency($cmd->currency,\Illuminate\Support\Facades\Session::get('boutique')['meta']['currency_client'],$price);
$total+=$price;
@endphp
@endif
@endif
@endforeach
@endif
@endif
@endif
@include("dashboard.Boutique.Boutique_template.layouts.grocery.banner",["page_title"=> "Détails des commandes effectuées","totalAchat"=> $total." ".\Illuminate\Support\Facades\Session::get('boutique')['meta']['currency_client'],])
Retour à mes commandes
Commandes Livrées
@php $total=0; $helpers=new \App\Http\Controllers\HelperController(); @endphp
@if(!isset($status) || $status=="SUCCESS")
@if(isset($commandes_datas))
@if(count($commandes_datas)>0)
Afficher : {{ count($commandes_datas) }} / {{ $commandes_datas->total()}}
@foreach($commandes_datas as $key => $cmd)
@if($cmd->commande_article!=null)
@if(count($cmd->commande_article)>0)
@php
$price=$cmd->total_price;
if($cmd->currency!==\Illuminate\Support\Facades\Session::get('boutique')['meta']['currency_client'])
$price=$helpers->convertCurrency($cmd->currency,\Illuminate\Support\Facades\Session::get('boutique')['meta']['currency_client'],$price);
$total+=$price;
@endphp
@if($cmd->statut_paiement==true)
Paiement effectué
@if($cmd->shipping==true)
@if($cmd->statut_shipping==false)
En attente de livraison
@else
Payé et livré : {{$cmd->updated_at->format('d/m/Y à H:i')}}
@endif
@else
Payé et livré : {{$cmd->updated_at->format('d/m/Y à H:i')}}
@endif
@else
@if($cmd->statut_shipping==false)
En attente livraison pour paiement
@else
Payé et livré : {{$cmd->updated_at->format('d/m/Y à H:i')}}
@endif
@endif
Total commande
{{$cmd->total_wr}} {{\Illuminate\Support\Facades\Session::get('boutique')['meta']['currency_client']}}
@if(isset($cmd->code_promo_reduction) && $cmd->code_promo_reduction!=null)
Code Réduction
{{$cmd->code_promo_reduction}}%
@endif
@if(isset($cmd->montant_global_code_promo) && $cmd->montant_global_code_promo>0)
Code Réduction global
{{$cmd->montant_global_code_promo}}%
@endif
Total dû
{{$cmd->total_price}} {{\Illuminate\Support\Facades\Session::get('boutique')['meta']['currency_client']}}
Total payé
{{$cmd->montant_payer}} {{\Illuminate\Support\Facades\Session::get('boutique')['meta']['currency_client']}}
@foreach($cmd->commande_article as $key => $art)
@if($art->article!=null)
@foreach($art->article as $key => $article)
@foreach($images as $image)
@if($image->key==$article->slug)
@break
@endif
@endforeach
@if($art->choice!="[]")
Préférences
@php $choix=[]; $choix=json_decode($art->choice,true); @endphp
@if(isset($choix))
@foreach($choix as $key =>$value)
{{$key}} :
@if(array_key_exists($key,$choix) && is_array($choix[$key]))
@for($i=0;$i{{$choix[$key][$i]}}
@endfor
@endif
@endforeach
@endif
@endif
@if($art->specificity)
Exigence
{{$art->specificity}}
@endif
@endforeach
@endif
@endforeach
@endif
@endif
@endforeach
{{ $commandes_datas->links() }}
@else
Aucune commande livrée
Vous n'avez pas de commandes livrées pour le moment
@endif
@else
Aucune commande livrée
Vous n'avez pas de commandes livrées pour le moment
@endif
@else
Aucune commande disponible
Aucune commande n'est disponible actuellement
@endif
@endsection
@section('script')
@if(session("paiement"))
@elseif(session("success"))
@elseif(session('error'))
@endif
@endsection