@if ($adherents->count() > 0)
AFFICHAGE DE  {{ $adherents->count() }}  ADHÉRENT(S)
@endif
@forelse($adherents as $key => $a) @php $badgeText = 'Inconnu'; $badgeClass = ''; if ($a->enVigueur == 1 && $a->sorti != 1) { $badgeText = 'Actif'; $badgeClass = 'status-active-badge'; } elseif ($a->codeEtatBeneficiaire == 'R' || $a->codeEtatBeneficiaire == 'NR') { $badgeText = 'Retiré'; $badgeClass = 'status-retired-badge'; } elseif ($a->codeEtatBeneficiaire == 'SP') { $badgeText = 'Suspendu'; $badgeClass = 'status-suspended-badge'; } $photoPath = 'plugins/thumbs/vitalis/' . $a->lienPhoto; $img = ($a->lienPhoto && file_exists(public_path($photoPath))) ? asset($photoPath) : asset('plugins/thumbs/img_placeholder.png'); $college = isset($colleges) ? $colleges->firstWhere('id', $a->idCollege) : null; $collegeLibelle = $college ? ($college->libelleCollege ?? 'Non défini') : 'Non défini'; @endphp
{{ Str::limit($a->adherent, 25) }}
N° {{ $a->numeroAdherent }} {{ $badgeText }}
Sexe {{ $a->sexe == 'M' ? 'Masculin' : ($a->sexe == 'F' ? 'Féminin' : $a->sexe) }}
Date Entrée {{ \Carbon\Carbon::parse($a->dateEffetBeneficiaire)->format('d/m/Y') }}
Catégorie {{ $a->codeProduit }}
Collège {{ $collegeLibelle }}
@if ($currentUser->hasPermission('admin.adherent.show')) Infos Adhérent @endif @if ($currentUser->hasPermission('admin.beneficiaire.index')) Mes Bénéficiaires @endif @if ($currentUser->hasPermission('admin.reseau.index')) Réseau de Soins @endif @if ($a->enVigueur == 1 && $a->sorti != 1 && $currentUser->hasPermission('admin.beneficiaire.beneficiaireModal')) @endif
@empty

Aucun adhérent trouvé.

@endforelse
@if ($adherents->count() > 0)
{!! $adherents->appends(request()->except('page'))->onEachSide(1)->links() !!}
@endif