delete(); session()->flash('status', "Organisation « {$organization->name} » supprimée."); } public function with(): array { return [ 'organizations' => Organization::query() ->when($this->search, fn ($query) => $query->where('name', 'like', "%{$this->search}%")) ->orderBy('name') ->paginate(15), ]; } }; ?>

Organisations

+ Nouvelle organisation
@forelse ($organizations as $organization) @empty @endforelse
Nom Type Statut
Logo {{ $organization->name }} {{ $organization->name }} {{ $organization->org_type ?? '—' }} {{ $organization->status === 'active' ? 'Actif' : 'Inactif' }} Modifier
Aucune organisation pour le moment.
{{ $organizations->links() }}