COMMANDES Liste des commandes effectuées sur {{$maboutique['nom_boutique']}}

@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @if(session("success"))
{{session('success')}}
@elseif(session("error"))
{{session('error')}}
@endif
@if($maboutique['user_slug']==\Illuminate\Support\Facades\Auth::user()->slug) @foreach($total as $key=>$value)
Total vente :

{{$value}} {{$key}}

@endforeach @endif
@if($maboutique['user_slug']==\Illuminate\Support\Facades\Auth::user()->slug) @foreach($total_payer as $key=>$value)
Total perçu en portefeuille:

{{$value}} {{$key}}

@endforeach @endif
@if($maboutique['user_slug']==\Illuminate\Support\Facades\Auth::user()->slug) @foreach($total_payer_espece as $key=>$value)
Total perçu en espèce:

{{$value}} {{$key}}

@endforeach @endif
@if($maboutique['user_slug']==\Illuminate\Support\Facades\Auth::user()->slug) @foreach($reste_a_payer as $key=>$value)
Reste à payer :

{{$value}} {{$key}}

@endforeach @endif
@if(isset($maboutique->mibSubscribe)) @endif @php $helpers=new \App\Http\Controllers\HelperController(); @endphp @foreach($commandes as $commande) @if(count($commande->commande_article)>0) @if(isset($maboutique->mibSubscribe) && $date_mib && !$date_mib->isPast()) @endif @endif @endforeach
Panier MIB ?Date Référence Client Prix total Code Promo Montant payer Reste à payer Mode de paiement Moyen de paiement Mode de livraison Etat d'achat Facture Détails livraison Etat de réception
@if(($commande->paiement_type=='paid_after' || $commande->paiement_type=='paid_now' || $commande->paiement_type=='panier_mib') && $commande->statut_paiement==false) for_panier_mib) checked @else @endif> @else @endif {{$commande->created_at->format('d-m-y à H:i')}} {{$commande->reference}} {{$commande->first_name}} {{$commande->last_name}} {{$commande->total_wr!=null ? $commande->total_wr : $commande->total_price }} {{$commande->currency}} {{$commande->code_promo!=null ? $commande->code_promo.' ('.$commande->code_promo_reduction.'%)' : '-'}} @if($commande->paiement_type=='paid_now') @if($commande->statut_paiement==true) {{$commande->total_price}} {{$commande->currency}} @else {{$commande->montant_payer}} {{$commande->currency}} @endif @else {{$commande->montant_payer}} {{$commande->currency}} @endif {{($commande->total_price)-( $commande->paiement_type=='paid_now' ? ($commande->statut_paiement==true ? $commande->total_price : $commande->montant_payer ) : $commande->montant_payer )}} {{$commande->currency}} @if($commande->for_panier_mib) Panier MIB @elseif($commande->paiement_type=='paid_now') Paiement direct @elseif($commande->paiement_type=='paid_echellon') Paiement échelloné @else Paiement après livraison @endif {{$commande->source}} {{$commande->source_name}} {{$commande->service_shipping != null ? $commande->service_shipping->name : 'aucun'}} @if($commande->paiement_type=='paid_now') @if($commande->statut_paiement!=true) {{'echec de paiement'}} @else {{'paiement effectué'}} @endif @else {{'paiement après livraison'}} @endif    voir la Facture @if($commande->shipping==true) details @else @if(isset($commande->shipping_phone) && $commande->shipping_phone!=null || isset($commande->shipping_adress) && $commande->shipping_adress!=null) details @else Livraison non incluse @endif @endif @if($commande->shipping==true && $commande->statut_shipping!=true) {{'en attente de livraison'}} @elseif((!$commande->statut_shipping && $commande->paiement_type=='panier_mib') || (!$commande->statut_shipping && $commande->paiement_type=='paid_after')) {{'en attente de livraison'}} @else {{$commande->statut_shipping}} {{'livraison effectuée'}} @if(isset($commande->date_shipping) && $commande->date_shipping !="") le {{\Illuminate\Support\Carbon::create($commande->date_shipping)->format('d-m-y à H:i')}} @endif @endif
{{ $commandes->links() }}