@extends('front.layout.master') @section('content')
@php // Convert program model to array with relationships // Load sections with items if not already loaded if (!$program->relationLoaded('sections')) { $program->load('sections.items'); } $program = $program->toArray(); // Ensure sections and items are properly formatted if (isset($program['sections']) && is_array($program['sections'])) { foreach ($program['sections'] as $section) { if (isset($section['items']) && is_array($section['items'])) { $section['items'] = array_values($section['items']); } else { $section['items'] = []; } } //unset section if title is Program Details if (isset($section['title'][app()->getLocale()]) && $section['title'][app()->getLocale()] == 'Program Details') { unset($program['sections'][array_search($section, $program['sections'])]); } $program['sections'] = array_values($program['sections']); } else { $program['sections'] = []; } @endphp{{ $program['training_area'][app()->getLocale()]['subtitle'] ?? '' }}
@endif{{ $program['highlights'][app()->getLocale()]['duration'] ?? '' }}
{{ $program['highlights'][app()->getLocale()]['location'] ?? '' }}
{{ $program['highlights'][app()->getLocale()]['fees'] ?? '' }}
{{ $sectionSubtitle }}
@endif{{ $item['description'][app()->getLocale()] ?? '' }}
@endif{{ $detail['subtitle'][app()->getLocale()] ?? '' }}
{{ $detail['description'][app()->getLocale()] ?? '' }}
{{ $program['eligibility_criteria'][app()->getLocale()]['subtitle'] ?? '' }}
@endif
{{ $program['link_to_apply'][app()->getLocale()]['subtitle'] ?? '' }}
{{ $program['link_to_apply'][app()->getLocale()]['button_text'] ?? '' }} @if(isset($program['link_to_apply'][app()->getLocale()]['subtitle2']) && !empty($program['link_to_apply'][app()->getLocale()]['subtitle2'])){{ $program['link_to_apply'][app()->getLocale()]['subtitle2'] ?? '' }}
@endif