@extends('layouts.app')
@php
// Data dari config/mdp.php.
$d = $program['detail'];
$title = $program['title'];
$open = $program['end'] >= now()->toDateString();
$pageUrl = route('mdp.show', $program['slug']);
$banner = asset('images/mdp/'.$program['slug'].'.webp');
$desc = \Illuminate\Support\Str::limit($d['description'][0], 155);
$inquiryUrl = route('inquiry.create', ['topic' => $title]);
$proposalUrl = route('mdp.proposal', $program['slug']);
$waNumber = preg_replace('/\D+/', '', (string) (config('contact.wa_public') ?: config('contact.wa_inhouse')));
$ctaText = $open ? 'Daftar / Ajukan Inquiry' : 'Tanya Batch Berikutnya';
// Hero: foto khusus program bila ada (public/images/mdp/{slug}-hero.webp); dua kata terakhir judul diberi warna.
$heroFile = 'images/mdp/'.$program['slug'].'-hero.webp';
$heroImg = asset(file_exists(public_path($heroFile)) ? $heroFile : 'images/assets/leadership-development-hd.webp');
$words = explode(' ', $title);
$accent = implode(' ', array_splice($words, -2));
// Tiap bagian hanya tampil bila datanya ada di config; menu mengikuti.
$nav = array_filter([
'deskripsi' => $d['description_title'] ?? 'Deskripsi',
'sasaran' => $d['goals_title'] ?? 'Sasaran',
'peserta' => empty($d['audience']) ? null : 'Peserta',
'framework' => empty($d['phases']) ? null : 'Framework',
'modul' => empty($d['modules']) && empty($d['module_details']) ? null : 'Modul',
'kompetensi' => empty($d['competencies']) ? null : 'Kompetensi',
'jadwal' => empty($d['schedule']) ? null : 'Jadwal',
'metode' => empty($d['method']) ? null : 'Metodologi',
'hasil' => empty($d['outcomes']) ? null : 'Hasil Program',
'fasilitator' => empty($d['facilitator']) ? null : 'Fasilitator',
'ketentuan' => 'Syarat & Ketentuan',
]);
// Ikon (Bootstrap Icons) untuk menu mengambang.
$navIcons = [
'deskripsi' => 'file-text', 'sasaran' => 'bullseye', 'peserta' => 'people', 'framework' => 'diagram-3',
'modul' => 'collection', 'kompetensi' => 'mortarboard', 'jadwal' => 'calendar-event', 'metode' => 'lightbulb',
'hasil' => 'trophy', 'fasilitator' => 'person-video3', 'ketentuan' => 'shield-check',
];
@endphp
@section('title', $title.' | Value Consult Training')
@section('description', $desc)
@section('og_image', $banner)
@push('head')
@php
$graph = ['@context' => 'https://schema.org', '@graph' => [
['@type' => 'BreadcrumbList', 'itemListElement' => [
['@type' => 'ListItem', 'position' => 1, 'name' => 'Beranda', 'item' => url('/')],
['@type' => 'ListItem', 'position' => 2, 'name' => 'Management Development Program', 'item' => route('mdp.index')],
['@type' => 'ListItem', 'position' => 3, 'name' => $title, 'item' => $pageUrl],
]],
['@type' => 'Course', '@id' => $pageUrl, 'name' => $title, 'description' => $desc, 'url' => $pageUrl, 'image' => $banner, 'inLanguage' => 'id-ID',
'provider' => ['@id' => url('/').'#organization']],
]];
@endphp
@endpush
@section('content')
{{-- HERO --}}
{{ $d['tagline'] }}
{{ implode(' ', $words) }} {{ $accent }}
@isset($d['tagline'])
{{ $text }}
@endforeach{{ $d['goals_lead'] }}
@endisset{{ $d['goals_intro'] }}
{{ $d['audience_intro'] ?? 'Program ini ditujukan bagi:' }}
{{ $d['audience_outro'] }}
@endisset{{ $d['framework_intro'] }}
{{ $text }}
@endforeach {{ $phase['flow'] }}{{ $m['subtitle'] }}
@endif @foreach ($m['groups'] as [$group, $items]){{ $c['text'] }}
Expected Outcome{{ $c['outcome'] }}
| {{ $col }} | @endforeach||||
|---|---|---|---|---|
| {{ $week }} | {{ $date }} | {{ $day }} | {{ $mode }} | {{ $competency }} |
{{ $text }}
@endforeach @if (is_array($d['method']['items'][0])){{ $d['method']['outro'] }}
{{ $d['outcomes']['intro'] }}
{{ $d['outputs']['intro'] }}
{{ $d['closing']['intro'] }}
{{ $d['closing']['outro'] }}
{{ $d[$key]['intro'] }}
{{ $text }}
@endforeach