@extends('layouts.base') @section('title', 'Commande client') @section('content')

{{ $element->quantity }}

Quantité commandé

{{ optional($element->stock)->quantity ?? 0 }}

Quantité en stock

{{ (optional($element->stock)->quantity ?? 0) - $element->quantity }}

Reste a produire

{{ $element->date->format('d M Y') }}

Date de commande

Produits commandé

{{ $element->product->name }}

Production

@foreach($element->productions as $production) @endforeach
Date Produit Prevu Réalisé
Date Produit Prevu Réalisé
{{ $production->product_at->format('d M Y') }} {{ $production->product->name }} {{ $production->planned }} {{ $production->achieve }}

Clients

@foreach($element->customers as $customer) @endforeach
Nom
Nom
{{ $customer->name }}
@endsection @section('javascripts') @endsection