{{-- Les lettres aux administrations d'une résiliation : Ouvrir, Partager ou enregistrer. Pas « Envoyer » : elles se déposent. --}} @php use App\Support\CadreLegal; use App\Support\Lecteur; use App\Support\SortieDocument; @endphp
@foreach (CadreLegal::destinatairesPour($resiliation->client) as $destinataire) @php $notification = $resiliation->notifications->firstWhere('destinataire', $destinataire); @endphp
{{ CadreLegal::destinataire($destinataire)['libelle'] }}
@if ($notification?->statut === 'envoyee') Envoyée le {{ $notification->envoyee_le?->format('d/m/Y') }} @elseif ($notification && ! $notification->concerne) Non concerné @else Lettre prête — à déposer contre décharge ou à envoyer en recommandé AR @endif
@if (! $notification || $notification->concerne)
Ouvrir {{ SortieDocument::LIBELLE }}
@endif
@endforeach