@extends('layouts.portal') @section('title', 'Applications') @section('subtitle', 'Every application across the career portal. Change a stage here and the candidate is emailed.') @section('actions') Job postings@endsection @section('content') @php $cur = $filters['status'] ?? ''; $keep = collect($filters)->except('status')->filter()->all(); $total = $counts->sum(); $hasFilters = collect($filters)->filter()->isNotEmpty(); $stageNote = ['submitted' => 'Received', 'reviewing' => 'Being reviewed', 'shortlisted' => 'Shortlisted', 'interview' => 'Interview stage', 'offered' => 'Offer made', 'hired' => 'Hired', 'rejected' => 'Not progressed', 'withdrawn' => 'Withdrawn by candidate']; @endphp @if($applications->isEmpty())
@if($hasFilters)Clear filters@endif
@else
@foreach($applications as $a) @php $who = $a->user; @endphp @endforeach
CandidateApplied forStageAppliedActions
@if($who?->avatarUrl())@else{{ $who?->initials() ?? '?' }}@endif
@if($who && $who->isStudent()){{ $who->name }}@else{{ $who?->name ?? 'Removed user' }}@endif
{{ $who?->email }}@if($a->phone) · {{ $a->phone }}@endif
@if($a->job){{ $a->job->title }}
{{ $a->job->employer?->company_name }}
@elsePosting removed@endif
{{ $a->status_changed_at ? 'Updated '.$a->status_changed_at->diffForHumans() : $stageNote[$a->status] ?? '' }}
{{ $a->created_at->format('d M Y') }}
{{ $a->created_at->format('g:i A') }}
@if($a->resume_path)@endif
{{ $applications->links() }} @foreach($applications as $a) @php $who = $a->user; @endphp @endforeach @endif @endsection