@props(['job']) @php $skills = is_array($job->skills) ? $job->skills : (json_decode($job->skills, true) ?: []); $skillString = implode(' ', array_map('strtolower', $skills)); $categorySlug = $job->category ? strtolower($job->category->slug) : 'general'; $locationKey = strtolower($job->city ?: ($job->district ?: $job->location)); $user = auth()->user(); $hasSaved = $user && $user->isJobseeker() ? $user->hasSavedJob($job->id) : false; $hasApplied = $user && $user->isJobseeker() ? $user->hasAppliedTo($job->id) : false; @endphp

{{ $job->title }}

{{ ucfirst($job->job_type) }} @if($job->category) {{ $job->category->name }} @endif @if($job->district) {{ $job->district }} @endif @if($job->is_scheme_vacancy) MahaSwayam Scheme @endif @if($job->is_featured) Featured @endif
@auth @if($user->isJobseeker()) @endif @endauth
{{ $job->location }} {{ $job->experience_level }} @if($job->qualification_required) {{ $job->qualification_required }} @endif @if($job->salary_display) {{ $job->salary_display }} @endif {{ $job->created_at ? $job->created_at->diffForHumans() : 'Recently' }}

{{ Str::limit(strip_tags($job->description), 160) }}

@if(count($skills) > 0)
@foreach(array_slice($skills, 0, 5) as $skill) {{ $skill }} @endforeach
@endif
@if($hasApplied) Applied Track Status @else Apply Now View Details @endif