{{-- Champ fichier (voir contrat : name="fichiers[][]", toujours en tableau). --}} @php $cle = $champ['cle'] ?? ''; $formats = $champ['validation']['formats'] ?? null; $maxMo = $champ['validation']['max_mo'] ?? 10; $aErreur = $errors->has("fichiers.{$cle}") || $errors->has("fichiers.{$cle}.*"); @endphp
@if (! empty($formats)) Formats acceptes : {{ strtoupper($formats) }} — @endif {{ $maxMo }} Mo max par fichier @if (! empty($champ['aide'])) {{ $champ['aide'] }} @endif @error("fichiers.{$cle}"){{ $message }}@enderror @error("fichiers.{$cle}.*"){{ $message }}@enderror