Commercial · Organismes

{{ $organisation->name }}

@php $termIsEmail = $searchTerm && str_contains($searchTerm, '@'); $current = $organisation->memberships->whereNull('ended_on'); $past = $organisation->memberships->whereNotNull('ended_on'); $noResult = $searchTerm !== null && $searchTerm !== '' && $searchResults->isEmpty(); @endphp {{-- En-tête organisme --}}
{{ strtoupper(mb_substr($organisation->name, 0, 2)) }}
Organisme{{ $organisation->sector ? ' · '.$organisation->sector : '' }}

{{ $organisation->name }}

{{ $organisation->country ?: '—' }}@if ($organisation->contact_name) · référent : {{ $organisation->contact_name }}@endif @if ($organisation->is_training_center)Centre de formation@endif
← Tous les organismes
@if (session('status'))
{{ session('status') }}
@endif @if ($errors->any())
{{ $errors->first() }}
@endif {{-- Coordonnées --}}

Coordonnées

@csrf @method('PUT') @include('admin.organisations._form', ['submitLabel' => 'Enregistrer'])
{{-- Membres --}}

Inscrire un membre

· rechercher par e-mail / téléphone, puis rattacher ou créer
{{-- Recherche (GET → refresh sûr) --}}
@if ($searchTerm)Effacer@endif
{{-- Résultats --}} @if ($searchTerm !== null && $searchTerm !== '')
@forelse ($searchResults as $found) @php $isMember = in_array($found->id, $currentMemberIds); @endphp
{{ strtoupper(mb_substr($found->name, 0, 2)) }}
{{ $found->name }}{{ $found->email }}@if ($found->phone) · {{ $found->phone }}@endif
@if ($isMember) Déjà membre @else
@csrf
@endif
@empty
Aucun compte trouvé pour « {{ $searchTerm }} ». Créez un nouveau compte ci-dessous.
@endforelse
@endif {{-- Import CSV --}}
Importer une promo (CSV)
Colonnes : nom, email (+ téléphone, rôle). Aperçu avant validation.
↓ Télécharger le modèle
@csrf
{{-- Créer manuellement --}}
@csrf
Un e-mail « définir mon mot de passe » sera envoyé automatiquement.
{{-- Liste des membres --}}
{{ $current->count() }} membre·s en cours @if ($past->isNotEmpty()) @endif
@foreach ($organisation->memberships->sortByDesc('started_on') as $m)
ended_on) x-show="showHistory" x-cloak @endif>
{{ strtoupper(mb_substr($m->user?->name ?? '?', 0, 2)) }}
{{ $m->user?->name ?? 'Compte supprimé' }} @unless ($m->ended_on)En cours@endunless {{ ucfirst($m->role) }} · {{ $m->user?->email }} · {{ $m->started_on?->format('m/Y') ?? '?' }} → {{ $m->ended_on?->format('m/Y') ?? '…' }}
@unless ($m->ended_on)
@csrf @method('PATCH')
@endunless
@csrf @method('DELETE')
@endforeach @if ($organisation->memberships->isEmpty())

Aucun membre pour l'instant.

@endif
{{-- Forfaits --}}

Forfaits

· accès par sièges Forfait
@forelse ($organisation->forfaits as $forfait) @php $used = $forfait->usedSeats(); $pct = $forfait->seats > 0 ? round($used / $forfait->seats * 100) : 0; @endphp
{{ $used }}/{{ $forfait->seats }}
{{ $forfait->name }} {{ $forfait->formation?->title }} · {{ $forfait->isFullScope() ? 'formation complète' : 'modules ciblés' }}@if ($forfait->ends_on) · échéance {{ $forfait->ends_on->format('d/m/Y') }}@endif
{{ ucfirst($forfait->status) }} Gérer
@empty

Aucun forfait. Créez-en un pour ouvrir des accès à une promo.

@endforelse