@extends('candidate.layouts.app') @section('content')

My Sessions

Your scheduled induction and training sessions.

@if($applicant->staffSessionSlots->isNotEmpty())
@foreach($applicant->staffSessionSlots as $slot) @php $isPast = $slot->date < now()->toDateString(); $isToday = $slot->date === now()->toDateString(); @endphp
{{ ucfirst($slot->status ?? 'Pending') }}
@if($isToday) Today @elseif($isPast) Past @else Upcoming @endif
{{ \Carbon\Carbon::parse($slot->date)->format('l, M d, Y') }}
{{ $slot->start_time }} - {{ $slot->end_time }} @if($slot->session_title) {{ $slot->session_title }} @endif
@if($slot->session_type)
Type: {{ ucfirst($slot->session_type) }}
@endif @if($slot->pivot?->note)
{{ $slot->pivot->note }}
@endif
@endforeach
@else
No Sessions Yet

You haven't been assigned to any induction or training sessions yet. You'll be notified once sessions are scheduled.

@endif @endsection