@extends('app') @section('content') Ajouter une commande client @if(Session::get('erreur')) {{ Session::get('erreur') }} @endif @if(Session::has('msgAdd')) {!! session('msgAdd') !!} @endif @if(Session::has('msgExist')) {!! session('msgExist') !!} @endif {!! Form::open(['method'=>'POST','action' => ['CommandeClientController@postForm'],'id'=>'lol']) !!} N° Commande client : Client : Sélectionner un client @foreach($clients as $client) idClient == Session::get('idClient')) selected @endif> {{$client->raisonSociale}} @endforeach Contact client : Adresse : Date de création : Statut : Ajout produit Référence produit Désignation Quantité TVA (%) Prix Unitaire H.T Prix Unitaire T.T.C Totale H.T Totale T.T.C Modifier Annuler @foreach( $lignescommande as $ligne) {!!$ligne->produit->reference!!} {!!$ligne->produit->designation!!} {!!(float)$ligne->quantiteCommande!!} {!!$ligne->tva!!} {!!number_format($ligne->prixHT,2)!!} {!!number_format($ligne->prixTTC,2)!!} {!!number_format($ligne->totalPrixHT,2)!!} {!!number_format($ligne->totalPrixTTC,2)!!} ( ! ) Notice: Undefined variable: ligne in C:\wamp64\www\old_bo\bo\resources\views\commande_client\ajouter.blade.php on line 179 Call Stack #TimeMemoryFunctionLocation 10.0734269464{main}( )...\ajouter.blade.php:0 ( ! ) Notice: Trying to get property of non-object in C:\wamp64\www\old_bo\bo\resources\views\commande_client\ajouter.blade.php on line 179 Call Stack #TimeMemoryFunctionLocation 10.0734269464{main}( )...\ajouter.blade.php:0 ( ! ) Notice: Undefined variable: ligne in C:\wamp64\www\old_bo\bo\resources\views\commande_client\ajouter.blade.php on line 180 Call Stack #TimeMemoryFunctionLocation 10.0734269464{main}( )...\ajouter.blade.php:0 ( ! ) Notice: Trying to get property of non-object in C:\wamp64\www\old_bo\bo\resources\views\commande_client\ajouter.blade.php on line 180 Call Stack #TimeMemoryFunctionLocation 10.0734269464{main}( )...\ajouter.blade.php:0 @endforeach Total TTC TVA Total HT Valider Annuler {!! Form::close() !!} × Ajout produit {!! Form::open(['method'=>'POST','action' => ['CommandeClientController@postAddLigneCommande'],'id'=>'hah']) !!} Produit Sélectionner le produit @foreach($produits as $produit) {{$produit->reference}} @endforeach T.V.A Prix Unitaire H.T Quantité Prix Uniaire T.T.C Totale H.T Totale TTC {!! Form::close() !!} @foreach($lignescommande as $ligne) × Modifier produit {!! Form::open(['method'=>'POST','action' => ['CommandeClientController@postEditeLigneCommande',$ligne->idLigneCommandeProduit]]) !!} Produit Sélectionner le produit @foreach($produits as $produit) id_produit == $ligne->idProduit) selected @endif> {{$produit->reference}} -- {{$produit->designation}} @endforeach T.V.A Prix Unitaire H.T Quantité Prix Uniaire T.T.C Totale H.T Totale TTC {!! Form::close() !!} × Confirmation Voulez-vous vraiment supprimer ce produit de la commande ? @endforeach @endsection
Voulez-vous vraiment supprimer ce produit de la commande ?