@extends('portal.portal-layout') @section('pages-content')

Welcome {{ $user->first_name }}

@if($user->is_volunteer) @include('portal.partials.volunteer-application-section') @endif @if($user->ownerBookings()->singleUser()->exists()) @include('portal.partials.bookings-section', [ 'title' => 'My bookings', 'attendees' => [$user], ]) @endif @if($user->children()->exists() && $user->children()->has('bookings')->exists()) @include('portal.partials.bookings-section', [ 'title' => 'Child bookings', 'attendees' => $user->children()->has('bookings')->with('bookings')->get(), ]) @endif

@svg('img/icons/shield-check') Safer recruitment

References
@if (count($pending_references) > 0)
@svg('img/icons/exclamation-circle')
Action required
@elseif(count($inprocess_references) > 0)
In progress
@else
@svg('img/icons/approved')
Approved
@endif
@svg('img/icons/right-arrow', 'text-blue-500')
DBS @if ($police_check?->assessment === \App\Enums\Assessment::Satisfactory && (now() < $police_check?->expiresOn() || $police_check?->expiresOn() === null))
@if ($police_check->is_update_service && $police_check->opt_in_update_service_checks) Your DBS is on the Update Service and will be checked annually. @else Due to expire in {{$police_check->getDBSExpiryTimeDifference()}} ({{$police_check?->expiresOn()->format('d-m-Y')}}) @endif
@svg('img/icons/approved')
Approved
@elseif ($police_check && $police_check?->assessment === null)
Your DBS is being verified
In progress
@else
No DBS in effect
@svg('img/icons/exclamation-circle')
Action required
@endif
@svg('img/icons/right-arrow', 'text-blue-500')

@svg('img/icons/user-profile') Account

My details @svg('img/icons/right-arrow', 'text-blue-500')
@if($user->children()->exists())
My children's details @svg('img/icons/right-arrow', 'text-blue-500')
@endif
@endsection