@extends('admin.layout') @section('title', 'Gestion des fabrications') @section('content')

@yield('title')

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

@endcan @if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif
@php $counter = count($fabrications); @endphp @foreach ($fabrications as $fabrication) @endforeach
ID Statut Client Modèle Options Date de commande Priorité Etat
{{ $fabrication->id }} {{ $fabrication->statut }}
ID CLIENT: {{ $fabrication->client_id }}
ID DEVIS : {{ $fabrication->devis_id }}
{{-- Raison sociale sinon NOM + PRENOM --}} {{ $fabrication->gestan_client['RAISON_SOCIALE'] ?? trim(($fabrication->gestan_client['NOMFAMILLE'] ?? '') . ' ' . ($fabrication->gestan_client['PRENOM'] ?? '')) }}
{{ $fabrication->gestan_devis['ADRESSE1'] ?? '-' }} {{ $fabrication->gestan_devis['ADRESSE2'] ?? '-' }}
{{ $fabrication->gestan_devis['CPOSTAL'] ?? '-' }} {{ $fabrication->gestan_devis['VILLE'] ?? '-' }}
@if ($fabrication->url) @endif {{ $fabrication->type->nom }}
{{ $fabrication->variation?->nom ?? $fabrication->modele?->nom }}
@if ($fabrication->conception !== 'NORMALE') {{ $fabrication->conception }}
@endif {{ $fabrication->api_color_value }}
{{ $fabrication->finition }}
{{ $fabrication->platine }} @if ($fabrication->url)
@endif
{{-- Maçonnerie --}} @if ($fabrication->maconnerie == 1)

Maçonnerie

@endif {{-- Cintrage --}} @if ($fabrication->cintrage == 1)

Cintrage

@endif {{-- Découpes --}} @if ($fabrication->decoupes && $fabrication->decoupes->count() > 0)
    Découpes : @foreach ($fabrication->decoupes as $decoupe)
  • {{ $decoupe->nom }}
  • @endforeach
@endif
@if ($fabrication->dateFormatted('created_at')) {{ $fabrication->dateFormatted('created_at') }}
@endif
{{ $fabrication->priorite }} {{ $fabrication->etat }} {{-- Bouton SHOW --}} @can('fabrications.view') @endcan {{-- Bouton EDIT --}} @can('fabrications.edit') @endcan {{-- Bouton DELETE --}} @can('fabrications.delete')
@csrf @method('DELETE')
@endcan
@endsection