@props(['data', 'metadata' => null, 'emptyMessage' => 'Aucun resultat.', 'emptyIcon' => 'heroicon-o-inbox']) @if (count($data) > 0) @php $firstRow = reset($data); $isAssociative = is_array($firstRow); $headers = $isAssociative ? array_keys($firstRow) : []; @endphp
| {{ $key }} | @endforeach @elseValeur | @endif
|---|---|
| {{ is_array($value) ? json_encode($value) : $value }} | @endforeach @else{{ $row }} | @endif