@extends('layouts.app') @section('title', $career->name . ' — CareerPath Pakistan') @push('styles') @endpush @section('content')
Careers {{ $career->name }}
{{ $career->icon ?? '💼' }}
{{ $career->category }}

{{ $career->name }}

{{ $career->description }}

View Roadmap @auth
@csrf
@endauth Compare
@if($career->key_skills)

Key Skills Required

@php $skills = is_array($career->key_skills) ? $career->key_skills : json_decode($career->key_skills, true) ?? []; @endphp @foreach($skills as $skill) {{ $skill }} @endforeach @if(empty($skills))

Skills information being updated.

@endif
@endif @if($career->job_titles)

Job Titles in This Field

@php $titles = is_array($career->job_titles) ? $career->job_titles : json_decode($career->job_titles, true) ?? []; @endphp
@foreach($titles as $title)
{{ $title }}
@endforeach
@endif @if($steps->count())

Career Roadmap Preview

@foreach($steps->take(4) as $i => $step)
{{ in_array($step->id, $userProgress) ? '✓' : ($i + 1) }}
{{ $step->title }}
{{ Str::limit($step->description, 120) }}
@endforeach @if($steps->count() > 4) View Full Roadmap ({{ $steps->count() }} steps) @endif
@endif @if($career->pros || $career->cons)
@if($career->pros)

Pros

@php $pros = is_array($career->pros) ? $career->pros : json_decode($career->pros, true) ?? []; @endphp @foreach($pros as $pro)
{{ $pro }}
@endforeach
@endif @if($career->cons)

Cons

@php $cons = is_array($career->cons) ? $career->cons : json_decode($career->cons, true) ?? []; @endphp @foreach($cons as $con)
{{ $con }}
@endforeach
@endif
@endif
@if($related->count()) @endif
@endsection