@extends('welcome') @section('title', 'Bons d\'entrées') @section('styles') @endsection @section('content')
Bons d'entrées
@if (Auth::user()->role_id == 1) @endif
@foreach ($bons as $bon) @endforeach
Date Référence Fournisseur Facture Commentaire Ajouté Par Modifié Par Imprimer Actions
{{ $bon->date ? date_create($bon->date)->format('d-m-Y') : $bon->created_at->format('d-m-Y') }} {{ $bon->reference }} {{ $bon->fournisseurs != null ? $bon->fournisseurs->name : '' }} {{ $bon->facture }} {{ $bon->comment }} {{ $bon->user != null ? $bon->user->name . ' ' . $bon->user->lastName : '' }} {{ $bon->edit != null ? $bon->edit->name . ' ' . $bon->edit->lastName : '' }} Imprimer @if (Auth::user()->role_id == 1) @endif
@method('DELETE') @csrf
@endsection @section('scripts') @endsection