@extends('admin.layout') @section('title', __("Fiche d'intervention")) @section('content') @php // Lignes à afficher : la saisie renvoyée après une erreur de // validation d'abord, sinon celles de la fiche. $lignes = old('lignes', $fiche->lignes->map(fn ($l) => [ 'produit_id' => $l->produit_id, 'code' => $l->code, 'libelle' => $l->libelle, 'prix_unitaire_ht' => (float) $l->prix_unitaire_ht, 'quantite' => $l->quantite, ])->all()); $technicien = $fiche->user ?? auth()->user(); $action = $fiche->exists ? route('fiche_interventions.update', $fiche) : route('fiche_interventions.store', $fiche->intervention_id); @endphp