@extends('admin.layout') @section('title', 'PRO-profielen') @section('content') @php $sortLink = function(string $column, string $label) use ($sort, $dir): string { $newDir = ($sort === $column && $dir === 'asc') ? 'desc' : 'asc'; $arrow = $sort === $column ? ($dir === 'asc' ? ' ↑' : ' ↓') : ''; $url = route('admin.pro-profiles.index', array_merge(request()->query(), ['sort' => $column, 'dir' => $newDir])); return '' . $label . $arrow . ''; }; @endphp {{-- Filters --}}
{{-- Table --}}| {!! $sortLink('id', 'ID') !!} | Naam / Organisatie | Gebruiker | {!! $sortLink('city', 'Stad') !!} | {!! $sortLink('country', 'Land') !!} | Kernactiviteit | ND | Zichtbaar | {!! $sortLink('created_at', 'Aangemaakt') !!} |
|---|---|---|---|---|---|---|---|---|
| {{ $profile->id }} |
{{ trim(($profile->first_name ?? '') . ' ' . ($profile->last_name ?? '')) ?: '—' }} @if ($profile->organization_name){{ $profile->organization_name }} @endif |
@if ($profile->user) {{ $profile->user->name }} @else — @endif | {{ $profile->city ?: '—' }} | {{ $profile->country ?: '—' }} | {{ $profile->core_activity ?: '—' }} | @if ($profile->is_neurodivergent) ✓ @else — @endif | {{ $profile->created_at->format('d/m/Y') }} | |
| Geen PRO-profielen gevonden. | ||||||||