@extends('layouts.candidate') @section('title', 'Candidate Dashboard - M-Ajira') @section('content') @if(!$candidate->has_paid_registration_fee)
💡

Complete Your Profile

Complete your profile to activate your account

📝 Complete Profile →
@endif

Welcome, {{ $candidate->first_name }}! 👋

Your ID: {{ $candidate->majira_id }} @if($candidate->has_paid_registration_fee) ✓ VERIFIED @else 📝 Complete Registration @endif

✈️

🚀 My Journey

@if(!empty($pipeline) && $pipeline[0]['status'] !== 'pending')
@foreach($pipeline as $index => $stage) @php $isCompleted = $stage['status'] === 'completed'; $isInProgress = $stage['status'] === 'in_progress'; $isPending = $stage['status'] === 'pending'; @endphp @if(!$loop->last) @endif @if(!$loop->last)
@endif
{{ $isInProgress ? '⏳' : ($isCompleted ? '✓' : $stage['icon']) }}

{{ $stage['name'] }}

@if($isInProgress)

{{ $stage['description'] }}

@endif
@endforeach
@else
📭

Your journey begins once you apply for a job.

Browse Jobs →
@endif
@if(session('success'))

Success!

{{ session('success') }}

@endif @if(session('info'))
💡

Next Step

{{ session('info') }}

@endif

Profile

{{ $stats['profile_completion'] ?? 0 }}%

📊
@if(($stats['profile_completion'] ?? 0) < 100) Complete → @endif

Applications

{{ $stats['total_applications'] ?? 0 }}

📝

Total submitted

Shortlisted

{{ $stats['shortlisted'] ?? 0 }}

Under review

Interviews

{{ $stats['interviews'] ?? 0 }}

💼

Scheduled

🎯 Jobs

View All
@forelse($matchedDemands ?? [] as $match)
🌍

{{ $match['demand']->job_title ?: 'Job Opportunity' }}

{{ $match['demand']->country }}

💰 {{ $match['demand']->salary_currency }} {{ number_format($match['demand']->salary_amount) }}/mo
👥 {{ $match['demand']->positions_available }} positions
{{ $match['score'] }}%

MATCH

View & Apply →
@empty
🔍

No Matched Jobs Yet

Complete your profile to get better job matches!

Complete Profile →
@endforelse

📋 My Applications

@forelse($applications ?? [] as $application)
🌍

{{ $application->job_title ?: $application->demand_sn }}

{{ $application->country }}

{{ ucfirst($application->pivot->status) }}
@empty
📭

No applications yet

@endforelse
Browse All Jobs →
@endsection