@extends('layouts.app') @section('header')

{{ __('My Applications') }}

@endsection @section('content')

Your Job Applications

Track and manage all your job applications in one place.

@forelse($applications as $application)
{{ substr($application->job->company->name ?? 'C', 0, 1) }}

{{ $application->job->title }}

{{ $application->job->company->name ?? 'Company Name' }}

{{ $application->job->location }} Applied {{ $application->created_at->diffForHumans() }}
@php $statusColors = [ 'pending' => 'bg-gray-100 text-gray-800', 'reviewing' => 'bg-blue-100 text-blue-800', 'shortlisted' => 'bg-yellow-100 text-yellow-800', 'interviewed' => 'bg-purple-100 text-purple-800', 'offered' => 'bg-green-100 text-green-800', 'rejected' => 'bg-red-100 text-red-800', 'withdrawn' => 'bg-gray-100 text-gray-600' ]; $statusLabels = [ 'pending' => 'Pending Review', 'reviewing' => 'Under Review', 'shortlisted' => 'Shortlisted', 'interviewed' => 'Interview Scheduled', 'offered' => 'Offer Extended', 'rejected' => 'Not Selected', 'withdrawn' => 'Withdrawn' ]; @endphp {{ $statusLabels[$application->status] ?? ucfirst($application->status) }} @if($application->job->featured)
FEATURED JOB
@endif

Application Details

@if($application->expected_salary)
Expected Salary: XAF {{ number_format($application->expected_salary) }}
@endif @if($application->availability_date)
Available From: {{ $application->availability_date->format('M j, Y') }}
@endif @if($application->resume_path)
Resume: Download
@endif

Job Information

Salary Range: XAF {{ number_format($application->job->salary_min ?? 0) }} - {{ number_format($application->job->salary_max ?? 0) }}
Employment Type: {{ $application->job->employment_type ?? 'Full-time' }}
Applications: {{ $application->job->applications_count ?? 0 }} total
@if($application->cover_letter)

Cover Letter

{{ Str::limit($application->cover_letter, 300) }}

@if(strlen($application->cover_letter) > 300) @endif
@endif @if($application->employer_notes)

Message from Employer

{{ $application->employer_notes }}

@endif
Application #{{ $application->id }}
View Job @if($application->status === 'pending')
@csrf @method('PATCH')
@endif
@empty

No applications yet

Start applying to jobs to see your applications here.

Browse Jobs
@endforelse @if($applications->hasPages())
{{ $applications->links() }}
@endif
@endsection