@extends('admin.layouts.app') @section('title', 'Application Details') @section('content')

Application Details

@php $application = $apiData['data']; @endphp
Applicant Information
Full Name

{{ $application['applicant_name'] }}

Applied Position

{{ $application['career']['title'] ?? 'N/A' }} @if($application['career']['department'] ?? false)
{{ $application['career']['department'] }} @endif

Contact Information

{{ $application['applicant_email'] }}

{{ $application['applicant_phone'] }}

Application Timeline

Submitted: {{ \Carbon\Carbon::parse($application['submitted_at'])->format('M d, Y H:i') }}

@if($application['updated_at'] != $application['created_at'])

Last Updated: {{ \Carbon\Carbon::parse($application['updated_at'])->format('M d, Y H:i') }}

@endif
@if($application['cover_letter'])
Cover Letter
{!! nl2br(e($application['cover_letter'])) !!}
@endif
Update Status
@csrf @method('PUT')
Application Status
@php $statusColors = [ 'pending' => 'warning', 'reviewed' => 'info', 'interviewed' => 'primary', 'accepted' => 'success', 'rejected' => 'danger' ]; @endphp
{{ ucfirst($application['status']) }}
@php $steps = [ 'pending' => 'Application Submitted', 'reviewed' => 'Under Review', 'interviewed' => 'Interview Scheduled', 'accepted' => 'Accepted', 'rejected' => 'Rejected' ]; $currentStep = array_search($application['status'], array_keys($steps)); @endphp @foreach($steps as $status => $label)
@if($loop->index < $currentStep) @elseif($loop->index == $currentStep) @else @endif
{{ $label }}
@endforeach
Documents
@if($application['applicant_cv']) View CV/Resume @endif Send Email
Internal Notes
@if($application['notes'])
{!! nl2br(e($application['notes'])) !!}
@else

No notes added yet.

@endif These notes are only visible to administrators.
@push('styles') @endpush @push('scripts') @endpush @endsection