MARKET COMMANDES suivi de toutes vos commandes sur market

@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @if(session("success"))
{{session('success')}}
@elseif(session("error"))
{{session('error')}}
@endif
@php $helpers=new \App\Http\Controllers\HelperController(); @endphp @foreach($commandes as $commande) @php $reference =$commande->reference_global; $first_name = explode(',', $commande->first_name)[0]; $last_name = explode(',', $commande->last_name)[0]; $client=$first_name.' '.$last_name; $total_price = $commande->total_price; $montant_global_code_promo = explode(',', $commande->montant_global_code_promo)[0]; $global_code_promo = explode(',', $commande->global_code_promo)[0]; $montant_payer = $commande->montant_payer; $paiement_type = explode(',', $commande->paiement_type)[0]; $currency = explode(',', $commande->currency)[0]; $statut_paiement = explode(',', $commande->statut_paiement)[0]; $statut_shipping = explode(',', $commande->statut_shipping)[0]; $source_name = explode(',', $commande->source_name)[0]; $country = explode(',', $commande->country)[0]; $source = explode(',', $commande->source)[0]; $total_wr = $commande->total_wr; $admin_gain = $commande->admin_gain; $slug = explode(',', $commande->slug)[0]; $email = explode(',', $commande->email)[0]; $admin_percentage = explode(',', $commande->admin_percentage)[0]; $customer_phone = explode(',', $commande->customer_phone)[0]; $shipping_adress = explode(',', $commande->shipping_adress)[0]; $shipping_phone = explode(',', $commande->shipping_phone)[0]; $shipping = explode(',', $commande->shipping)[0]; $customer_adress = explode(',', $commande->customer_adress)[0]; $sex = explode(',', $commande->sex)[0]; $created_at = explode(',', $commande->created_date)[0]; $updated_at = explode(',', $commande->updated_date)[0]; $created_at = date('d-m-y à H:i', strtotime($created_at)); $updated_at = date('d-m-y à H:i', strtotime($updated_at)); @endphp @endforeach
Action Date Référence Client Prix total Code promo Montant payer Reste à payer Gain Admin Mode de paiement Moyen de paiement Mode de livraison Etat d'achat Etat de réception
Détails {{$created_at}} {{$reference}} {{$first_name}} {{$last_name}} {{$total_wr!=null ? $total_wr : $total_price }} {{$currency}} {{$global_code_promo!=null ? $global_code_promo.' ('.$global_code_promo.'%)' : '-'}} @if($paiement_type=='paid_now') @if($statut_paiement!=true) {{$total_price}} {{$currency}} @else {{$montant_payer}} {{$currency}} @endif @else {{$montant_payer}} {{$currency}} @endif {{($total_price)-( $paiement_type=='paid_now' ? ($statut_paiement==true ? $total_price : $montant_payer ) : $montant_payer )}} {{$currency}} {{ $admin_percentage }} % - ({{ $admin_gain }} CFA) @if($paiement_type=='paid_now') Paiement direct @elseif($paiement_type=='paid_echellon') Paiement échelloné @else Paiement après livraison @endif {{$source}} {{$source_name}} {{$shipping_adress}} @if($paiement_type=='paid_now') @if($statut_paiement!=true) {{'echec de paiement'}} @else {{'paiement effectué'}} @endif @else {{'paiement après livraison'}} @endif @if($shipping==true) @if($statut_shipping!=true) {{'en attente de livraison'}} @else {{'livraison effectuée'}} le {{$updated_at}} @endif @else Livraison non incluse @endif
{{ $commandes->links() }}