@extends('layouts.app') @section('title', 'Candidatos da vaga - Banco de Talentos') @section('meta_description', 'Visualize os candidatos inscritos na vaga.') @section('content')
@include('pages.partials.perfil-empresa-topbar', ['empresa' => $empresa ?? []])
Painel da empresa
Candidatos ({{ $totalCandidatos }})
@isset($job) Exportar CSV @endisset
@php use App\Support\TalentBank\JobApplicationStatus; $statusBadgeStyles = [ JobApplicationStatus::ENROLLED => 'bg-manus-light-purple text-manus-dark-purple', JobApplicationStatus::PENDING => 'bg-warning text-dark', JobApplicationStatus::VIEWED => 'bg-info text-dark', JobApplicationStatus::INTERVIEW => 'bg-primary', JobApplicationStatus::APPROVED => 'bg-success', JobApplicationStatus::REJECTED => 'bg-secondary', JobApplicationStatus::CANCELLED => 'bg-dark', JobApplicationStatus::CLOSED => 'bg-secondary', ]; $statusLabels = []; foreach (JobApplicationStatus::labels() as $val => $label) { $statusLabels[$val] = [ 'label' => $label, 'badge' => $statusBadgeStyles[$val] ?? 'bg-secondary', ]; } @endphp @forelse(($candidatos ?? collect()) as $candidato) @php $pivotStatus = $candidato->pivot->status ?? JobApplicationStatus::ENROLLED; $badgeInfo = $statusLabels[$pivotStatus] ?? $statusLabels[JobApplicationStatus::ENROLLED]; $modalId = 'curriculo-modal-' . $candidato->id; $statusUrl = route('talent-bank.company.jobs.applicants.status', ['job' => $job->id, 'candidate' => $candidato->id]); @endphp
{{ $candidato->name }}
{{ $candidato->email ?: '-' }} {{ $candidato->cellphone ?? $candidato->telephone ?? '-' }} {{ optional($candidato->occupation)->name ?? 'Sem ocupação' }} · {{ optional($candidato->neighbourhood)->name ?? 'Sem bairro' }} @if (!empty($candidato->cv_summary)) {{ \Illuminate\Support\Str::limit(strip_tags($candidato->cv_summary), 130) }} @endif Candidatura em {{ !empty(data_get($candidato, 'pivot.created_at')) ? \Illuminate\Support\Carbon::parse(data_get($candidato, 'pivot.created_at'))->format('d/m/Y') : '-' }} {{ $badgeInfo['label'] }}
Contatar
@csrf @method('PATCH')
{{-- Modal currículo do candidato --}} @empty

Sem candidatos

@endforelse
@include('components.botao-sair-sessao')
@push('scripts') @endpush @endsection