@forelse ($rapports as $r) @php $isNew = is_null($previousSeen) || $r->created_at > $previousSeen; $client = $r->contenu['client'] ?? null; $ville = $r->contenu['ville'] ?? null; $where = collect([$client, $ville])->filter()->implode(' ยท '); @endphp
{{ $r->user?->prenom }} {{ $r->user?->nom }} a saisi un rapport
{{ $where !== '' ? $where : 'Intervention #' . $r->intervention_id }}
{{ $r->created_at->diffForHumans() }}
@if ($isNew) @endif
@empty @endforelse