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

Welcome, {{ $applicant->full_name }}

Here's an overview of your recruitment journey with us.

{{-- Status Cards --}}
Current Stage
{{ ucfirst(str_replace('_', ' ', $applicant->stage_status ?? 'pending')) }}
Stage Result
@if($applicant->stage_result) {{ ucfirst($applicant->stage_result) }} @else Awaiting result @endif
Offer Status
{{ ucfirst($applicant->offer_status ?? 'Pending') }}
{{-- Position Info --}}
Position Details
Position
{{ $applicant->recruitment?->jobTitles?->name ?? '-' }}
Department
{{ $applicant->recruitment?->requests?->department?->name ?? '-' }}
Application Status
{{ ucfirst($applicant->current_status) }}
Applied On
{{ $applicant->created_at?->format('M d, Y') ?? '-' }}
{{-- Upcoming Sessions --}}
Upcoming Sessions
@if($applicant->staffSessionSlots->isNotEmpty())
@foreach($applicant->staffSessionSlots as $slot) @endforeach
Date Time Type Status
{{ $slot->date }} {{ $slot->start_time }} - {{ $slot->end_time }} {{ ucfirst($slot->status ?? 'Pending') }} @if($slot->date >= now()->toDateString()) Upcoming @else Completed @endif
@else

No sessions scheduled yet. You'll be notified when sessions are assigned.

@endif
{{-- Recent Activity --}}
Recent Activity
@if($applicant->logs->isNotEmpty())
@foreach($applicant->logs as $log)
{{ str_replace('_', ' ', $log->field) }} changed from {{ $log->old_value ?? 'N/A' }} to {{ $log->new_value ?? 'N/A' }}
{{ $log->created_at?->diffForHumans() }}
@endforeach
@else

No activity recorded yet.

@endif
@endsection