@extends('layouts.main.main') @section('content')
Note : La création d'un bon de commande se fait depuis la fiche d'un projet.
@if($orders->whereIn('status',[0,1])->count() > 0)
@foreach($orders->whereIn('status',[0,1]) as $order) @endforeach
Numéro Projet Client Fournisseur Date Facture reçue État
{{ $order->project->projectref }}/{{ $order->number }}{{ ($order->version > 1) ? '-'.$order->version : '' }} {{ $order->project->projectref }} {{ $order->project->customer->name }} {{ $order->supplier->name }} {{ date('d/m/Y', strtotime($order->created_at)) }}
@else Aucun bon de commande n'est enregistré pour l'instant @endif
@if($orders->where('status',2)->count() > 0)
@foreach($orders->where('status',2) as $order) @endforeach
Numéro Projet Client Fournisseur Date Facture reçue État
{{ $order->project->projectref }}/{{ $order->number }}{{ ($order->version > 1) ? '-'.$order->version : '' }} {{ $order->project->projectref }} {{ $order->project->customer->name }} {{ $order->supplier->name }} {{ date('d/m/Y', strtotime($order->created_at)) }}
@else Aucun bon de commande n'est archivé pour l'instant @endif
@endsection