@extends('admin.layout') @section('title', 'Gestion des découpes') @section('content')

@yield('title')

@can('decoupes.create') @can('decoupes.create') @endcan @endcan

@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif
@foreach ($fabricationDecoupes as $fd) @endforeach
# ID Fabrication Nom client Adresse chantier Modèle Nom Découpe/Inox Etat Observation Date envoi / réception Laseriste
{{ $fd->id }} {{ $fd->fabrication?->id ?? '-' }} {{ $fd->fabrication?->devis->nom_client ?? '-' }} {{ $fd->fabrication?->devis->prenom ?? '' }} {{ $fd->fabrication?->devis->adresse1 ?? '-' }} {{ $fd->fabrication?->devis->adresse2 ?? '' }}
{{ $fd->fabrication?->devis->ville ?? '-' }} {{ $fd->fabrication?->devis->code_postal ?? '' }}
{{ $fd->fabrication?->modele->type->nom ?? '—' }}
{{ $fd->fabrication?->modele?->nom ?? '—' }}
{{ $fd->fabrication->api_color_value ?? '—' }}
{{ $fd->fabrication?->finition }}
{{ $fd->fabrication?->platine }}
{{ $fd->decoupe?->nom ?? '-' }} {{ $fd->etat_decoupe ?? '-' }} @foreach ($fd->observations as $observation)
{{ $observation->observation }}
@endforeach
Envoi : {{ $fd->created_at?->format('d/m/Y') ?? '-' }}
Réception : {{ $fd->dateFormatted('date_reception_decoupe') ?? '-' }}
{{ $fd->laseriste ?? '-' }} {{-- Bouton SHOW --}} @can('decoupes.view') @endcan {{-- Bouton EDIT --}} @can('decoupes.edit') @endcan {{-- Bouton DELETE --}} @can('decoupes.delete')
@csrf @method('DELETE')
@endcan
@endsection