{{-- Barre logos --}}
OPCC UNTEC
@csrf

Annuaire des référenciers OPCC

Gestion de la liste des économistes référencés pour la réalisation des études

Exporter tout
@if (session('ok'))
{{ session('ok') }}
@endif {{-- Statistiques --}}
@php $cartes = [ ['Total', $stats['total'], 'linear-gradient(135deg,#0054A8,#1E6FC4)', 'fa-users'], ['Confirmés', $stats['confirme'], 'linear-gradient(135deg,#90C03C,#5fa733)', 'fa-circle-check'], ['À confirmer', $stats['a_confirmer'], 'linear-gradient(135deg,#f59e0b,#fbbf24)', 'fa-clock'], ['Désinscrits', $stats['desinscrit'], 'linear-gradient(135deg,#94a3b8,#c3cede)', 'fa-user-slash'], ]; @endphp @foreach ($cartes as [$libelle, $valeur, $grad, $icone])

{{ $valeur }}

{{ $libelle }}

@endforeach
{{-- Filtres --}}

Choisis une région, un type ou un statut, puis « Exporter la sélection » pour cibler un envoi. Le bouton « Exporter tout » en haut exporte l'annuaire complet.

{{-- Tableau --}}
@forelse ($referenciers as $r) @empty @endforelse
Nom Cabinet Contact Région Expertises Statut
{{ $r->civilite }} {{ $r->nom }} {{ $r->prenom }}
@if ($r->type_membre) {{ $r->type_membre }} @endif
{{ $r->raison_sociale ?: '—' }}
{{ $r->email ?: '—' }}
{{ $r->telephone ?: $r->mobile }}
{{ $r->region_untec ?: '—' }}
@forelse ($r->expertisesLibelles() as $exp) {{ \Illuminate\Support\Str::limit($exp, 22) }} @empty — @endforelse
@php $badge = [ 'confirme' => 'background:#e7f6d6;color:#4e7d17', 'a_confirmer' => 'background:#fef3c7;color:#92660b', 'desinscrit' => 'background:#eef2f6;color:#6b7885', ][$r->statut] ?? 'background:#eef2f6;color:#6b7885'; @endphp {{ \App\Models\Referencier::STATUTS[$r->statut] ?? $r->statut }}
@if ($r->statut === 'confirme')
@csrf
@else
@csrf
@endif
Aucun référencier ne correspond à ces critères.
{{ $referenciers->links() }}
@php $fiches = []; foreach ($referenciers as $r) { $fiches[$r->id] = [ 'nom' => trim($r->civilite . ' ' . $r->nom . ' ' . $r->prenom), 'raison_sociale' => $r->raison_sociale, 'type_membre' => $r->type_membre, 'email' => $r->email, 'telephone' => $r->telephone, 'mobile' => $r->mobile, 'adresse' => trim(($r->adresse ? $r->adresse . ' ' : '') . $r->code_postal . ' ' . $r->ville), 'region_untec' => $r->region_untec, 'nb_collaborateurs' => $r->nb_collaborateurs, 'annee_creation' => $r->annee_creation, 'regions_exercice' => $r->regions_exercice ?? [], 'expertises' => $r->expertisesLibelles(), 'typologies' => $r->typologiesLibelles(), 'typologie_autre' => $r->typologie_autre, 'utilise_datacollect' => (bool) $r->utilise_datacollect, 'commentaire' => $r->commentaire, 'statut' => $r->statut, 'statut_libelle' => \App\Models\Referencier::STATUTS[$r->statut] ?? $r->statut, 'confirmed_at' => optional($r->confirmed_at)->format('d/m/Y à H:i'), 'lien' => route('referencier.confirmer', $r->token), ]; } @endphp {{-- Modale fiche referencier --}}