@extends('layouts.app') @section('title','My Job Applications') @section('content') @if(session('success'))
{{ session('success') }}
@endif @php $hired = $applications->getCollection()->where('status','hired'); $shortlisted= $applications->getCollection()->where('status','shortlisted'); $others = $applications->getCollection()->whereNotIn('status',['hired','shortlisted']); @endphp {{-- Hired jobs — prominent section --}} @if($hired->count())
Hired Positions
@foreach($hired as $app)
Hired
{{ $app->job->title }}
{{ $app->job->location }}  ·  {{ \App\Models\JobListing::typeLabel($app->job->type) }} @if($app->job->salary_range)  ·  {{ $app->job->salary_range }}@endif
Hired
@if($app->admin_notes)
Message from employer: {{ $app->admin_notes }}
@endif
Next Steps
Check your email for onboarding details
Contact the employer to confirm your start date
@if($app->job->is_nabola_internal)
Complete your Nabola profile if not done
@endif
@if($app->job->apply_email) Email Employer @endif View Job
@endforeach
@endif {{-- Shortlisted --}} @if($shortlisted->count())
Shortlisted
@foreach($shortlisted as $app)
{{ $app->job->title }}
{{ $app->job->location }} · Applied {{ $app->created_at->diffForHumans() }}
@if($app->admin_notes)
{{ $app->admin_notes }}
@endif
Shortlisted
@endforeach
@endif {{-- All other applications --}} @if($others->count())
All Applications
@endif
@forelse($others as $app)
{{ $app->job->title }}
{{ $app->job->location }}  ·  Applied {{ $app->created_at->diffForHumans() }}
@if($app->admin_notes)
{{ $app->admin_notes }}
@endif
@php $statusStyles = [ 'pending' => ['bg'=>'rgba(96,165,250,.15)','color'=>'#60a5fa','icon'=>'clock','label'=>'Pending Review'], 'reviewed' => ['bg'=>'rgba(165,180,252,.15)','color'=>'#a5b4fc','icon'=>'eye','label'=>'Reviewed'], 'rejected' => ['bg'=>'rgba(239,68,68,.12)','color'=>'#f87171','icon'=>'times-circle','label'=>'Not Selected'], ]; $s = $statusStyles[$app->status] ?? ['bg'=>'rgba(255,255,255,.08)','color'=>'rgba(255,255,255,.5)','icon'=>'circle','label'=>ucfirst($app->status)]; @endphp {{ $s['label'] }}
@empty @if(!$hired->count() && !$shortlisted->count())
📋
No applications yet
Browse Jobs
@endif @endforelse
{{ $applications->links() }}
@endsection