@extends('portal.layouts.app', [ 'class' => '', 'elementActive' => '' ]) @section('title','Job Profile') @section('content')
{{-- Job Header --}}
Company Logo

{{ $job->title }}

{{ $job->company->name ?? 'N/A' }}

Posted on {{ \Carbon\Carbon::parse($job->created_at)->format('d M Y') }}
Schedule Interviews
{{-- Tabs --}} {{-- Tab Panes --}}
{{-- Overview --}}
Job Overview
{{-- Column 1 --}}

Title: {{ $job->title }}

Category: {{ $job->category->name ?? 'N/A' }}

Country: {{ $job->country->name ?? 'N/A' }}

Location: {{ $job->job_location ?? 'N/A' }}

Type: {{ ucfirst($job->job_type ?? 'N/A') }}

Level: {{ ucfirst($job->job_level ?? 'N/A') }}

Gender: {{ ucfirst($job->job_gender ?? 'Any') }}

{{-- Column 2 --}}

Working Hours: {{ $job->job_working_hours ?? 'N/A' }}

Currency: {{ strtoupper($job->currency ?? 'USD') }}

Salary Range: {{ number_format($job->job_salary_min, 2) }} - {{ number_format($job->job_salary_max, 2) }}

Candidates Needed: {{ $job->job_candidates ?? 'N/A' }}

Interview Required: {{ ucfirst($job->job_interview_required ?? 'No') }}

Expiration Date: {{ \Carbon\Carbon::parse($job->job_expiration)->format('d M Y') }}

Status: @if($job->job_status === 'Active') Active @else {{ $job->job_status }} @endif


{{-- Description & Details --}}
Description

{!! formatText($job->job_description) ?? 'No description provided.' !!}

Responsibilities

{!! formatText($job->job_responsibilities) ?? 'Not specified.' !!}

Requirements

{!! formatText($job->job_requirements) ?? 'Not specified.' !!}

Skills Required

{!! formatText($job->job_skill_requirements) ?? 'Not specified.' !!}

Experience

{!! formatText($job->job_experience_requirements) ?? 'Not specified.' !!}

Education

{!! formatText($job->job_education_requirements) ?? 'Not specified.' !!}

Benefits

{!! formatText($job->job_benefits) ?? 'Not specified.' !!}

{{-- Demand Letter --}} @if($job->demand_letter)
Demand Letter
View Demand Letter
@endif
{{-- Company Info --}}
Company Information

Name: {{ $job->company->name ?? 'N/A' }}

Employer: {{ $job->company->employer->user->name ?? 'N/A' }}

Email: {{ $job->company->employer->user->email ?? 'N/A' }}

Industry: {{ ucfirst($job->company->industry ?? 'N/A') }}

Founded: {{ $job->company->year_founded ?? 'N/A' }}

Website: {{ $job->company->website ?? 'N/A' }}

Description:

{{ $job->company->description ?? 'No description available.' }}

{{-- Applications --}} @can('view job applications')
Candidate Applications
@forelse($job->applications as $app)
@can('delete job application')
@csrf @method('DELETE')
@endcan
{{ $app->candidate->user->name ?? 'N/A' }}

Email: {{ $app->candidate->user->email ?? 'N/A' }}

Experience: {{ $app->experience ?? 'N/A' }} years

Skills: {{ $app->candidate->skills ?? 'N/A' }}

@if($app->status === 'pending') Pending @elseif($app->status === 'approved') Approved @elseif($app->status === 'rejected') Rejected @endif
{{-- Remarks --}} @if(!empty($app->remarks))
Remarks: {{ $app->remarks }}
@endif {{-- Action Buttons for Pending Applications --}} @if($app->status === 'pending') @can('process job applications')
@csrf
@csrf
@endcan @endif
@empty

No candidate applications yet.

@endforelse
@endcan {{-- Interviews--}} @can('process job applications')
Candidate Interviews
@foreach($job->applications as $app) @foreach($app->interviews as $key => $interview) {{-- 🔽 Action Dropdown --}} @endforeach @endforeach
# Ref Date Candidate Status Selected Travelled Action
{{ $key + 1 }} {{ $interview->reference ?? '—' }} {{ \Carbon\Carbon::parse($interview->date)->format('d M Y h:i A') }} {{ $interview->application->candidate->user->name ?? 'N/A' }} {{ ucfirst($interview->status) }} @if($interview->selected) @else @endif @if($interview->travelled) @else @endif
@endcan {{-- Suggested Candidates --}}
Suggested Candidates
@forelse($suggestedCandidates as $candidate)
{{ $candidate->user->name }}

Email: {{ $candidate->user->email }}

Experience: {{ $candidate->experience ?? 'N/A' }} years

Skills: {{ $candidate->skills ?? 'N/A' }}

View Profile @can('match candidates to job') @endcan
@empty

No suggested candidates found.

@endforelse
@endsection @section('script') @endsection