@extends('admin.layout') @section('title', $user->name) @section('content')
← Gebruikers
{{-- Left: profile info --}}
{{-- Basic info card --}}
@if ($user->profile) @endif @if ($user->primaryPhoto) @else
{{ mb_substr($user->name, 0, 1) }}
@endif @if ($user->profile)
@endif
@if ($user->profile) #{{ $user->id }} {{ $user->name }} ↗ @else

#{{ $user->id }} {{ $user->name }}

@endif

{{ $user->email }}

{{ ucfirst($user->role?->value ?? 'user') }} @if ($user->isOrg()) ORG @elseif ($user->is_pro) PRO @elseif ($user->is_premium) Premium @endif @if ($user->suspended_at) Geschorst @endif
ID
{{ $user->id }}
Lid sinds
{{ $user->created_at->format('d/m/Y H:i:s') }}
E-mail geverifieerd
{{ $user->email_verified_at ? $user->email_verified_at->format('d/m/Y') : '—' }}
Abonnement
{{ $user->subscription_plan ?? '—' }} @if ($user->subscription_status) ({{ $user->subscription_status }}) @endif
Likes gegeven / ontvangen / matches
{{ $user->likes_count }} / {{ $user->liked_by_count }} / {{ $matches->count() }}
Volgt / Volgers
{{ $followingCount }} / {{ $followersCount }}
Gesprekken / Berichten
{{ $conversationCount }} / {{ $messageCount }}
Geblokkeerd
{{ $blockedCount }} profiel(en)
Abonnement gestart op
{{ $user->subscription_started_at?->format('d/m/Y') ?? '—' }}
Rondleiding voltooid
{{ $user->tour_completed ? 'Ja' : 'Nee' }}
@if ($user->suspended_at)
Geschorst op
{{ $user->suspended_at->format('d/m/Y H:i:s') }}
@if ($user->suspension_reason)
Reden
{{ $user->suspension_reason }}
@endif @endif
{{-- Profile info --}} @if ($user->profile) @php $p = $user->profile; $dash = fn($v) => filled($v) ? '' . e($v) . '' : ''; $bool = fn($v) => '' . ($v ? 'Ja' : 'Nee') . ''; $tags = fn(array $arr) => $arr ? '' . e(implode(', ', $arr)) . '' : ''; @endphp

Profiel #{{ $p->id }}

{{-- Basisgegevens --}}

Basisgegevens

Zichtbaar
@if ($p->is_visible && $p->isComplete())
Ja
@elseif ($p->is_visible && !$p->isComplete())
Nee (onvolledig)
@else
Nee
@endif
Type
{!! $dash($p->profile_type) !!}
Voornaam / achternaam
{!! $dash(trim($user->name . ' ' . $user->last_name)) !!}
Geslacht
{!! $dash($p->gender) !!}
Geboortedatum
{!! $p->date_of_birth ? '' . $p->date_of_birth->format('d/m/Y') . ' (' . $p->date_of_birth->age . ' jr)' : '' !!}
Postcode / stad / land
{!! $dash($p->zip_code) !!} {!! $dash($p->city) !!} {!! $dash($p->country) !!}
Talen
{!! $tags(array_filter([$p->preferred_language, $p->preferred_language_2, $p->preferred_language_3])) !!}
Bezigheid
{!! $dash($p->occupation) !!}
Over mij
{!! $dash($p->about_me) !!}
{{-- Verbinding & matching --}}

Verbinding & matching

Diagnoses
{!! $tags($p->diagnoses) !!}
Verbindingsdoelen
{!! $tags($p->connectionPurpose) !!}
Zoekend naar (geslacht)
{!! $tags($p->lookingFor) !!}
Leeftijdsvoorkeur
@if ($p->looking_for_age_min || $p->looking_for_age_max) {{ $p->looking_for_age_min ?? '?' }} – {{ $p->looking_for_age_max ?? '?' }} jr @else @endif
Krachten
{!! $tags($p->strengths) !!}
Uitdagingen
{!! $tags($p->challenges) !!}
Interesses
{!! $tags($p->interestTagSlugs) !!}
{{-- Matching profiel --}}

Matching profiel

Sociale energie
@php $se = (int) ($user->profile?->social_energy ?? 0); @endphp @if ($se)
{{ $se }}/9
@else @endif
Communicatiestijl
@php $cs = $user->profile?->communication_style ?? []; @endphp @if (!empty($cs))
@foreach ($cs as $style) {{ $style }} @endforeach
@else @endif
{{-- MBTI --}}

MBTI

Type
{!! $dash($p->mbti_type) !!}
Zichtbaar op profiel
{!! $bool($user->mbti_visible) !!}
Betrouwbaarheid
{{ $p->mbti_confidence ? $p->mbti_confidence . '%' : '—' }}
{{-- Sensorisch profiel --}}

Sensorisch profiel

Ingevuld
@if ($signalPlan && $signalPlan->sensory_profile && $signalPlan->sensory_profile !== 'null') Ja @else Nee @endif
Zichtbaar op profiel
{!! $bool($user->sensory_profile_visible) !!}
{{-- Sociaal --}}

Sociaal

Website
{!! $dash($p->website) !!}
Telefoon
{!! $dash($p->phone) !!}
@foreach ([ 'Instagram' => $p->social_instagram, 'Facebook' => $p->social_facebook, 'X' => $p->social_x, 'LinkedIn' => $p->social_linkedin, 'TikTok' => $p->social_tiktok, 'Reddit' => $p->social_reddit, 'Pinterest' => $p->social_pinterest, 'YouTube' => $p->social_youtube, 'Tumblr' => $p->social_tumblr, 'Vimeo' => $p->social_vimeo, ] as $label => $val)
{{ $label }}
{!! $dash($val) !!}
@endforeach
@endif {{-- PRO profiel --}} @if ($user->proProfile) @php $pp = $user->proProfile; @endphp

PRO profiel #{{ $pp->id }}

Identiteit

Zichtbaar
{{ $pp->is_visible ? 'Ja' : 'Nee' }}
Neurodivergent
{{ $pp->is_neurodivergent ? 'Ja' : 'Nee' }}
Naam
{{ trim(($pp->first_name ?? '') . ' ' . ($pp->last_name ?? '')) ?: '—' }}
Geslacht / Geboortedatum
{{ $pp->gender ?? '—' }} {{ $pp->date_of_birth ? '· ' . $pp->date_of_birth->format('d/m/Y') : '' }}
Talen
{{ implode(', ', array_filter([$pp->preferred_language, $pp->preferred_language_2, $pp->preferred_language_3])) ?: '—' }}
Actief sinds
{{ $pp->active_since ?? '—' }}

Organisatie

Naam
{{ $pp->organization_name ?? '—' }}
Kernactiviteit
{{ $pp->core_activity ?? '—' }}
Adres
{{ trim(($pp->address ?? '') . ', ' . ($pp->zip_code ?? '') . ' ' . ($pp->city ?? '') . ' ' . ($pp->country ?? ''), ', ') ?: '—' }}
Contact e-mail
{{ $pp->contact_email ?? '—' }}
Telefoon / Mobiel
{{ $pp->phone ?? '—' }} {{ $pp->mobile ? '/ ' . $pp->mobile : '' }}
Website
{{ $pp->website ?? '—' }}
Booking URL
{{ $pp->booking_url ?? '—' }}

Erkenning

RIZIV-nummer
{{ $pp->riziv_number ?? '—' }}
Psycholoog-registratie
{{ $pp->psychologist_registration ?? '—' }}
Klinisch-psycholoog visum
{{ $pp->clinical_psychologist_visa ?? '—' }}
Beroepsvereniging
{{ $pp->professional_association ?? '—' }}
Wachttijd
{{ $pp->waitlist ? 'Ja' : 'Nee' }}
Consultprijs
{{ $pp->consultation_price ?? '—' }}

Aanbod

Ondersteuningsvormen
{{ $pp->support_types ? implode(', ', $pp->support_types) : '—' }}
Ondersteunt bij
{{ $pp->support_for ? implode(', ', $pp->support_for) : '—' }}
Leeftijdsgroepen
{{ $pp->age_groups ? implode(', ', $pp->age_groups) : '—' }}
Doelgroepen
{{ $pp->target_groups ? implode(', ', $pp->target_groups) : '—' }}
Serviceformaten
{{ $pp->service_formats ? implode(', ', $pp->service_formats) : '—' }}
Focusonderwerpen
{{ $pp->focus_topics ? implode(', ', $pp->focus_topics) : '—' }}
@php $ppSocials = array_filter([ 'LinkedIn' => $pp->social_linkedin, 'Instagram' => $pp->social_instagram, 'Facebook' => $pp->social_facebook, 'X' => $pp->social_x, 'TikTok' => $pp->social_tiktok, 'YouTube' => $pp->social_youtube, 'Reddit' => $pp->social_reddit, 'Pinterest' => $pp->social_pinterest, 'Tumblr' => $pp->social_tumblr, 'Vimeo' => $pp->social_vimeo, ]); @endphp @if ($ppSocials)

Sociaal

@foreach ($ppSocials as $label => $val)
{{ $label }}
{{ $val }}
@endforeach
@endif
@endif {{-- Video --}} @if ($user->video)

Introvideo

Status
@php $vs = $user->video->status; @endphp {{ ucfirst($vs) }}
Geüpload op
{{ $user->video->created_at->format('d/m/Y H:i') }}
Video UID
{{ $user->video->video_uid }}
@if ($user->video->playback_url) @endif
@endif {{-- Photos --}} @if ($user->photos->isNotEmpty()) @php $photosData = $user->photos->values()->map(fn($p) => [ 'id' => $p->id, 'src' => $p->fullUrl(), 'isPrimary' => (bool) $p->is_primary, ])->toArray(); @endphp

Foto's ({{ $user->photos->count() }})

@foreach ($user->photos as $i => $photo) @endforeach
{{-- Lightbox --}}
@endif {{-- Account activiteit --}}

Account activiteit

Ingelogd
{{ $loginStats['total_success'] }}
Mislukt
{{ $loginStats['total_failed'] }}
Geblokkeerd
{{ $loginStats['total_throttled'] }}
Laatste activiteit
@if ($loginStats['last_active_at']) {{ $loginStats['last_active_at']->format('d/m/Y H:i:s') }} {{ $loginStats['last_active_at']->diffForHumans() }} @else @endif
Laatste login
@if ($loginStats['last_login']) {{ $loginStats['last_login']->created_at->format('d/m/Y H:i:s') }} {{ $loginStats['last_login']->ip_address }} @else @endif
Laatste mislukt
@if ($loginStats['last_failed']) {{ $loginStats['last_failed']->created_at->format('d/m/Y H:i:s') }} {{ $loginStats['last_failed']->ip_address }} @else @endif
Foto's ↑/✕
{{ $loginStats['total_photos'] }} / {{ $loginStats['total_photo_del'] }}
@if ($recentLogins->isNotEmpty()) @php $typeMap = [ 'success' => ['label' => 'Ingelogd', 'dot' => 'bg-green-400'], 'failed' => ['label' => 'Login mislukt', 'dot' => 'bg-red-400'], 'login_throttled' => ['label' => 'Geblokkeerd', 'dot' => 'bg-yellow-400'], 'logout' => ['label' => 'Uitgelogd', 'dot' => 'bg-gray-300'], 'registration' => ['label' => 'Geregistreerd', 'dot' => 'bg-green-400'], 'registration_failed' => ['label' => 'Registratie mislukt', 'dot' => 'bg-red-400'], 'email_verified' => ['label' => 'E-mail geverifieerd', 'dot' => 'bg-green-400'], 'password_reset_requested' => ['label' => 'Reset aangevraagd', 'dot' => 'bg-blue-400'], 'password_reset_completed' => ['label' => 'Reset voltooid', 'dot' => 'bg-blue-400'], 'password_changed' => ['label' => 'Wachtwoord gewijzigd', 'dot' => 'bg-blue-400'], 'email_changed' => ['label' => 'E-mail gewijzigd', 'dot' => 'bg-blue-400'], 'account_deletion_requested' => ['label' => 'Verwijdering aangevraagd', 'dot' => 'bg-orange-400'], 'account_deleted' => ['label' => 'Account verwijderd', 'dot' => 'bg-red-400'], 'photo_uploaded' => ['label' => 'Foto geüpload', 'dot' => 'bg-sky-400'], 'photo_upload_failed' => ['label' => 'Foto upload mislukt', 'dot' => 'bg-red-400'], 'photo_deleted' => ['label' => 'Foto verwijderd', 'dot' => 'bg-orange-400'], ]; @endphp

Activiteitenlog ({{ $recentLogins->count() }})

    @foreach ($recentLogins as $log) @php $cfg = $typeMap[$log->type] ?? ['label' => $log->type, 'dot' => 'bg-gray-300']; $sub = null; if ($log->type === 'failed') { $sub = match($log->context['reason'] ?? null) { 'email_not_found' => 'e-mail onbekend', 'wrong_password' => 'fout wachtwoord', default => null, }; } elseif ($log->type === 'registration' && ($log->context['email_failed'] ?? false)) { $sub = 'verificatie-e-mail mislukt'; } elseif ($log->type === 'registration_failed') { $sub = 'DB-fout'; } elseif ($log->type === 'photo_upload_failed') { $sub = \Illuminate\Support\Str::limit($log->context['error'] ?? '', 50); } elseif ($log->type === 'photo_deleted' && ($log->context['was_primary'] ?? false)) { $sub = 'was profielfoto'; } @endphp
  • {{ $cfg['label'] }} @if ($sub) — {{ $sub }} @endif @if ($log->ip_address) {{ $log->ip_address }} @endif
    {{ $log->created_at->format('d/m H:i:s') }}
  • @endforeach
@endif
{{-- Subscription history --}} @if ($paymentLogs->isNotEmpty() || $subscriptionAdminLogs->isNotEmpty())

Abonnementshistoriek

@php $eventColors = [ 'checkout_started' => 'bg-gray-100 text-gray-600', 'plan_switch_started' => 'bg-gray-100 text-gray-600', 'payment_paid' => 'bg-green-100 text-green-800', 'renewal_paid' => 'bg-green-100 text-green-800', 'payment_failed' => 'bg-red-100 text-red-700', 'payment_expired' => 'bg-red-100 text-red-700', 'payment_cancelled' => 'bg-red-100 text-red-700', 'subscription_cancelled' => 'bg-orange-100 text-orange-700', 'subscription_creation_failed' => 'bg-red-100 text-red-700', 'referral_reward_granted' => 'bg-violet-100 text-violet-700', 'webhook_received' => 'bg-blue-100 text-blue-700', 'webhook_error' => 'bg-red-100 text-red-700', ]; $actionColors = [ 'subscription_grant' => 'bg-blue-100 text-blue-700', 'subscription_extend' => 'bg-green-100 text-green-700', 'subscription_revoke' => 'bg-red-100 text-red-700', 'subscription_trial' => 'bg-emerald-100 text-emerald-700', 'subscription_manual' => 'bg-gray-100 text-gray-600', ]; $actionLabels = [ 'subscription_grant' => 'Verleend', 'subscription_extend' => 'Verlengd', 'subscription_revoke' => 'Ingetrokken', 'subscription_trial' => 'Proefperiode', 'subscription_manual' => 'Handmatig', ]; @endphp @if ($paymentLogs->isNotEmpty())

Mollie betalingen

@foreach ($paymentLogs as $log) @endforeach
Datum Event Plan Bedrag Periode Mollie ID
{{ $log->created_at->format('d/m/Y H:i:s') }} {{ $log->event }} {{ $log->plan ?? '—' }} @if ($log->amount) €{{ $log->amount }} @if ($log->discount_amount) (-€{{ $log->discount_amount }}) @endif @else — @endif @if ($log->subscription_starts_at && $log->subscription_ends_at) {{ $log->subscription_starts_at->format('d/m/y') }} – {{ $log->subscription_ends_at->format('d/m/y') }} @else — @endif {{ $log->mollie_payment_id ? substr($log->mollie_payment_id, 0, 18) . '…' : '—' }}
@endif @if ($subscriptionAdminLogs->isNotEmpty())

Admin-aanpassingen

@foreach ($subscriptionAdminLogs as $log) @endforeach
Datum Actie Door Waarde Periode
{{ $log->created_at->format('d/m/Y H:i:s') }} {{ $actionLabels[$log->action] ?? $log->action }} @if ($log->admin) {{ $log->admin->name }} @else @endif {{ $log->new_value ?? '—' }} @if (!empty($log->meta['starts_at']) || !empty($log->meta['ends_at'])) @if (!empty($log->meta['starts_at'])) {{ \Carbon\Carbon::parse($log->meta['starts_at'])->format('d/m/y') }} @endif @if (!empty($log->meta['ends_at'])) – {{ \Carbon\Carbon::parse($log->meta['ends_at'])->format('d/m/y') }} @endif @else — @endif
@endif
@endif {{-- Sessieoverzicht --}}

Recente sessies (laatste 20)

@if (empty($recentSessions) || count($recentSessions) === 0)

Geen sessies geregistreerd.

@else
@foreach ($recentSessions as $session) @endforeach
Start Laatste activiteit Pagina's Toestel Bron
{{ \Carbon\Carbon::parse($session->started_at)->format('d/m/Y H:i:s') }} {{ \Carbon\Carbon::parse($session->last_active_at)->format('d/m H:i:s') }} {{ $session->page_count }} {{ $session->device_type }} · {{ $session->browser }} {{ $session->source_type ?? '—' }}
@endif
{{-- ICE-contacten (noodcontacten) --}} @if ($user->iceContacts->isNotEmpty())

Noodcontacten (ICE) ({{ $user->iceContacts->count() }})

@foreach ($user->iceContacts as $ice) @endforeach
Naam Relatie Telefoon E-mail Notitie
{{ $ice->name }} {{ $ice->relation ?? '—' }} {{ $ice->phone ?? '—' }} {{ $ice->email ?? '—' }} {{ $ice->note ?? '—' }}
@endif {{-- Likes & Matches --}}

Likes & Matches {{ $user->likes_count }} gegeven · {{ $user->liked_by_count }} ontvangen · {{ $matches->count() }} {{ $matches->count() === 1 ? 'match' : 'matches' }}

@if ($matches->isNotEmpty()) @php $givenByTarget = $likesGiven->keyBy('to_user_id'); @endphp

Matches

@foreach ($matches as $match) @php $matchLike = $givenByTarget[$match->id] ?? null; @endphp #{{ $match->id }} {{ $match->name }} @if ($matchLike) {{ $matchLike->created_at->format('d/m/y H:i:s') }} @endif @endforeach
@endif
{{-- Likes gegeven --}}

Gegeven ({{ $likesGiven->count() }})

@if ($likesGiven->isEmpty())

Geen

@else
@foreach ($likesGiven as $like)
#{{ $like->to_user_id }} {{ $like->toUser?->name ?? '—' }} {{ $like->created_at->format('d/m/y H:i:s') }}
@endforeach
@endif
{{-- Likes ontvangen --}}

Ontvangen ({{ $likesReceived->count() }})

@if ($likesReceived->isEmpty())

Geen

@else
@foreach ($likesReceived as $like)
#{{ $like->from_user_id }} {{ $like->fromUser?->name ?? '—' }} {{ $like->created_at->format('d/m/y H:i:s') }}
@endforeach
@endif
{{-- GDPR --}}

Persoonsgegevens (GDPR)

@php $yn = fn($v) => $v ? 'Ja' : 'Nee'; // Unieke IPs uit loginlogs $knownIps = $recentLogins ->pluck('ip_address') ->merge(collect($recentSessions)->pluck('ip')) ->filter() ->unique() ->sort() ->values(); // Unieke user agents uit loginlogs $knownUAs = $recentLogins ->pluck('user_agent') ->filter() ->unique() ->values(); // Unieke apparaat+browser combos uit sessies $knownDevices = collect($recentSessions) ->map(fn($s) => trim(($s->device_type ?? '') . ' · ' . ($s->browser ?? ''), ' ·')) ->filter() ->unique() ->values(); $howFoundLabel = match($user->how_found) { 'search_engine' => 'Zoekmachine', 'social_media' => 'Social media', 'friend_family' => 'Vriend of familie', 'professional' => 'Therapeut / coach / professional', 'news_blog' => 'Nieuwsartikel of blog', 'event' => 'Evenement of activiteit', 'other' => 'Anders', default => null, }; @endphp {{-- Toestemming --}}

Toestemming

Algemene voorwaarden
@if ($user->terms_accepted_at) {{ $user->terms_accepted_at->format('d/m/Y H:i:s') }} @if ($user->terms_version) v{{ $user->terms_version }} @endif @else Niet geaccepteerd @endif
Privacyverklaring versie
{{ $user->privacy_version ?? '—' }}
Account aangemaakt
{{ $user->created_at->format('d/m/Y H:i:s') }}
E-mail geverifieerd
@if ($user->email_verified_at) {{ $user->email_verified_at->format('d/m/Y H:i:s') }} @else Niet geverifieerd @endif
Hoe gevonden
{{ $howFoundLabel ?? ($user->how_found ?: '—') }}
{{-- Communicatievoorkeuren --}}

Communicatievoorkeuren

E-mail

Bij like
{!! $yn($user->email_likes) !!}
Bij match
{!! $yn($user->email_matches) !!}
Groepsuitnodiging
{!! $yn($user->email_group_invite) !!}
Evenementuitnodiging
{!! $yn($user->email_event_invite) !!}
Nieuw bericht
{!! $yn($user->email_message) !!}
Marketing
{!! $yn($user->email_marketing) !!}
Maandelijkse digest
{!! $yn($user->email_digest) !!}

In-app / push

Bij like
{!! $yn($user->notify_likes) !!}
Bij match
{!! $yn($user->notify_matches) !!}
Groepsactiviteit
{!! $yn($user->notify_group_activity) !!}
Evenementherinneringen
{!! $yn($user->notify_event_reminders) !!}
Groepsuitnodiging
{!! $yn($user->notify_group_invite) !!}
Evenementuitnodiging
{!! $yn($user->notify_event_invite) !!}
Berichten ontvangen
{!! $yn($user->allow_messages) !!}
Uitnodigingen van
@if ($user->invite_from) {{ implode(', ', (array) $user->invite_from) }} @else @endif
{{-- Registratie --}}

Registratie

Registratie-IP
{{ $registrationLog?->ip_address ?? '—' }}
Registratietijd
{{ $registrationLog ? $registrationLog->created_at->format('d/m/Y H:i:s') : '—' }}
Browser / apparaat bij registratie
{{ $registrationLog?->user_agent ?? '—' }}
Referralcode (eigen)
{{ $user->referral_code ?? '—' }}
Doorverwezen door
@if ($user->referredBy) {{ $user->referredBy->name }} #{{ $user->referred_by }} @else @endif
@if ($user->referral_rewarded_at)
Referral beloond op
{{ $user->referral_rewarded_at->format('d/m/Y H:i:s') }}
@endif
{{-- Bekende IP-adressen --}}

Bekende IP-adressen (laatste 50 logingebeurtenissen + sessies)

@if ($knownIps->isEmpty())

Geen geregistreerd.

@else
@foreach ($knownIps as $ip) {{ $ip }} @endforeach
@endif {{-- Apparaten & browsers --}}

Apparaten & browsers (laatste 20 sessies)

@if ($knownDevices->isEmpty() && $knownUAs->isEmpty())

Geen geregistreerd.

@else @if ($knownDevices->isNotEmpty())
@foreach ($knownDevices as $device) {{ $device }} @endforeach
@endif @if ($knownUAs->isNotEmpty())
User agents ({{ $knownUAs->count() }}) ▸
    @foreach ($knownUAs as $ua)
  • {{ $ua }}
  • @endforeach
@else
@endif @endif {{-- Mollie & betaalidentifiers --}}

Mollie & betaalidentifiers

Mollie klant-ID
{{ $user->mollie_customer_id ?? '—' }}
Mollie abonnements-ID
{{ $user->mollie_subscription_id ?? '—' }}
Betalingsreferentie
{{ $user->subscription_payment_ref ?? '—' }}
@if ($user->payout_iban)
Uitbetaling IBAN
{{ $user->payout_iban }}
@endif
{{-- Right: actions --}}
{{-- GDPR data download --}}

Gegevensexport (GDPR)

Identiek aan de CSV die de gebruiker zelf kan downloaden.

↓ Download CSV
{{-- Change role --}} @if (auth()->user()->isAdmin())

Rol wijzigen

@csrf @method('PATCH')
@endif {{-- Subscription management --}} @if (auth()->user()->isAdmin())

Abonnement

{{-- Current state summary --}}

@if ($user->is_pro) 🏅 PRO @elseif ($user->is_premium && $user->subscription_status === 'trial') 🎁 Gratis periode @elseif ($user->is_premium) 💎 Premium @else Geen actief abonnement @endif @if ($user->subscription_status === 'cancelled' && $user->subscription_ends_at) — opgezegd, toegang t/m {{ $user->subscription_ends_at->format('d/m/Y') }} @elseif ($user->subscription_ends_at && in_array($user->subscription_status, ['active', 'trial'])) — loopt t/m {{ $user->subscription_ends_at->format('d/m/Y') }} @endif

{{-- Quick actions --}}
@if (! ($user->is_premium && $user->subscription_status === 'active'))
@csrf @method('PATCH')
@csrf @method('PATCH')
@endif {{-- Trial period (no plan) --}} @foreach ([7, 14, 30] as $trialDays)
@csrf @method('PATCH')
@endforeach
@csrf @method('PATCH')
@if ($user->is_premium)
@csrf @method('PATCH')
@csrf @method('PATCH')
@csrf @method('PATCH')
@endif
{{-- Manual edit --}}
Handmatig aanpassen ▸
@csrf @method('PATCH')
@endif {{-- Impersonation --}} @if (auth()->user()->isAdmin() && ! $user->isAdmin() && ! $user->isModerator() && ! $user->isSupport())

Profiel invullen als gebruiker

Log tijdelijk in als deze gebruiker om diens profiel voor te bereiden. Een rode banner herinnert je dat je aan het impersoneren bent.

@csrf
@endif {{-- PRO type selector --}} @if (auth()->user()->isAdmin())

PRO type

Bepaalt of een PRO-gebruiker als individuele hulpverlener of als hulporganisatie verschijnt.

@csrf @method('PATCH')
@if (session('success') && str_contains(session('success'), 'Pro type'))

{{ session('success') }}

@endif
@endif {{-- Suspend / unsuspend --}} @if (auth()->user()->isAdmin() || auth()->user()->isModerator())

Schorsing

@if ($user->suspended_at)
@csrf
@else
@csrf
@endif
@endif {{-- Delete account --}} @if (auth()->user()->isAdmin() && $user->id !== auth()->id())

{{ __('Danger zone') }}

{{ __('Delete account permanently?') }}

{{ __('This removes the user, all profile data, photos, likes, messages, and subscriptions. This action cannot be undone.') }}

{{ $user->name }} — {{ $user->email }}

@csrf @method('DELETE')
@endif
@endsection