Aucune ligne.
@else @foreach($groups as $title => $rows) @if ($rows->isNotEmpty())| {{ \Illuminate\Support\Str::headline(str_replace('_',' ',$c)) }} | @endforeach
|---|
| @php $isArticleCol = (strtolower($c) === 'article'); @endphp @if($isArticleCol && ($list->allow_details ?? false)) @php // on essaie de récupérer le choix sur la ligne si la colonne existe $choixValue = null; try { $choixValue = $r->choix ?? null; } catch (\Throwable $e) { $choixValue = null; } $detailUrl = route('stocks.article', [ 'slug' => $list->slug, 'article' => $r->{$c}, 'choix' => $choixValue, // 👈 passera null si non défini ]); @endphp {{ $r->{$c} }} @else {{ $r->{$c} }} @endif | @endforeach