@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 --}}
@if ($activities->count())
@endif
Reset
{{-- Table --}}
{{ $profiles->total() }} PRO-profiel(en) gevonden
@forelse ($profiles as $profile) @empty @endforelse
{!! $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
@csrf
{{ $profile->created_at->format('d/m/Y') }}
Geen PRO-profielen gevonden.
@if ($profiles->hasPages())
{{ $profiles->links() }}
@endif
@endsection