@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"=> "Commandes en paiement échelonné","totalAchat"=> $total." ".\Illuminate\Support\Facades\Session::get('boutique')['meta']['currency_client'],])
Retour à mes commandes

Paiement Échelonné

@php $total=0; $helpers=new \App\Http\Controllers\HelperController(); @endphp @if(isset(\Illuminate\Support\Facades\Session::get('boutique')['paiement_echelonner']) && \Illuminate\Support\Facades\Session::get('boutique')['paiement_echelonner']!=null) @if(!isset($status) || $status=="SUCCESS") @if(isset($commandes_datas)) @if(count($commandes_datas)>0)
Affichage : {{ count($commandes_datas) }} / {{ $commandes_datas->total()}} commandes
@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
Ref: {{$cmd->reference}}
{{$cmd->created_at->format('d/m/Y à H:i')}}
Voir détails
@if($cmd->paiement_type=='paid_echellon') Paiement échelonné ({{\Illuminate\Support\Facades\Session::get('boutique')['paiement_echelonner']['max']}}) @if($cmd->montant_payer>=$cmd->total_price) Paiement effectué @if($cmd->shipping==true) @if($cmd->statut_shipping==false) En attente de livraison @else Livré le {{$cmd->updated_at->format('d/m/Y à H:i')}} @endif @endif @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 > $cmd->montant_payer ? $cmd->total_price - $cmd->montant_payer : 0}} {{\Illuminate\Support\Facades\Session::get('boutique')['meta']['currency_client']}}
Total payé {{$cmd->montant_payer}} {{\Illuminate\Support\Facades\Session::get('boutique')['meta']['currency_client']}}
@if($cmd->montant_payer<$cmd->total_price)
@php $total_paiement = \Illuminate\Support\Facades\Session::get('boutique')['paiement_echelonner']['max']; $unit = $cmd->total_price / $total_paiement; $remain = $cmd->total_price - $cmd->montant_payer; $numbers = ceil($remain / $unit); @endphp @if($numbers > 0)
@endif
@else @if($cmd->shipping==false)
@endif @endif
@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) {{$article->name}} @break @endif @endforeach
{{$article->name}}
Quantité {{$art->quantity}}
Prix unitaire {{$art->price}} {{$cmd->currency}}
Total {{$art->total_price}} {{$cmd->currency}}
@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)
Exigences particulières
{{$art->specificity}}
@endif
@endforeach @endif @endforeach
@endif @endif @endforeach
{{ $commandes_datas->links() }}
@else
Aucune commande
Aucune commande trouvée
Vous n'avez pas encore de commande en paiement échelonné
@endif @else
Aucune commande
Aucune commande trouvée
Vous n'avez pas encore de commande en paiement échelonné
@endif @else
Aucune commande
Aucune commande disponible
Une erreur s'est produite lors du chargement de vos commandes
@endif @endif
@endsection @section('script') @if(session("paiement")) @elseif(session("success")) @elseif(session('error')) @endif @endsection