@extends('layouts.AdminMaster') @section('content')
Routeur vers la liste des Précommandes
@php $client = $commande->user; @endphp
Détails du client
  • Code Client : {{ $client->code }}
  • Client : {{ $client->name }}
  • Commande passée le : {{ \Carbon\Carbon::parse($commande->created_at)->format('d/m/Y H:i') }}
@foreach($panier as $cart) @endforeach {{----}}
Produit Magasin Lot Producteur Qte/Bac Tige/Bac Taille Couleur Age HT/Initial HT/tige Total HT
{{ $cart['produit'] ? $cart['produit']->nom_produit : null }} {{ $cart['produit'] ? $cart['produit']->entreprise : null }} {{ $cart['produit'] ? $cart['produit']->lot : null }} {{ $cart['produit'] ? $cart['produit']->producteur : null }} {{ $cart['qty'] }} {{ $cart['produit'] ? $cart['produit']->nbre_tiges : null }} {{ $cart['produit'] ? $cart['produit']->taille : null }} {{ $cart['produit'] ? $cart['produit']->couleur : null }} {{ $cart['produit'] ? $cart['produit']->date_arrivage->diffInDays($commande->created_at) : null }} J @if($cart['produit'] && $cart['produit']->prix_mini) {{$cart['produit']->prix_mini}} {{$infos->devise}} @endif {{$cart['produit'] ? $cart['produit']->prix_vente : null}} {{$infos->devise}} {{ $cart['subtotal'] }} {{$infos->devise}}
Sous Total {{ $commande->sub_total }} {{ $infos->devise }}
Remise - {{ $commande->remise }} {{ $infos->devise }}
Total HT {{ $commande->total }} {{ $infos->devise }}
TVA : {{ $commande->taxe }} {{ $infos->devise }}
Total de la Précommande : {{ $commande->total }} {{ $infos->devise }}
@if($commande->adresse_livraison)
Adresse livraison: {!! str_replace('\n','
- ',$commande->adresse_livraison) !!}
@endif @if($commande->commentaire)
Commentaire: {!! str_replace('\n','
- ',$commande->commentaire) !!}
@endif @if($commande->subCommandes && $commande->subCommandes->count()>0)

Commandes rassemblées

@foreach ($commande->subCommandes as $commande) @endforeach
Numéro client Prix total Date de la Précommande Bacs Livraison Options
@if($commande->subCommandes && $commande->subCommandes->count()>0) @endif {{ $commande->numero or $commande->id }} {{$commande->user->code or ''}}: {{$commande->user->name or ''}} {{$commande->total}} {{ $infos->devise }} {{$commande->created_at}} {{$commande->bacs}} {{$commande->adresse_livraison ? 'OUI' :'NON'}} id)}}" class="btn btn-info btn-xs"> Visualiser @if($commande->commentaire)@endif {{--afficher l'icon commentaire s'il existe--}}
@endif @endsection