@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 --}}
Peserta {{ $title }}
{{ $program['badge'] }}

{{ implode(' ', $words) }} {{ $accent }}

@isset($d['tagline'])

{{ $d['tagline'] }}

@endisset

{{ $d['description_title'] ?? 'Deskripsi Program' }}

@foreach ($d['description'] as $text)

{{ $text }}

@endforeach

{{ $d['goals_title'] ?? 'Sasaran Program' }}

@isset($d['goals_lead'])

{{ $d['goals_lead'] }}

@endisset

{{ $d['goals_intro'] }}

    @foreach ($d['goals'] as $text)
  • {{ $text }}
  • @endforeach
@if (!empty($d['audience']))

Sasaran Peserta

{{ $d['audience_intro'] ?? 'Program ini ditujukan bagi:' }}

    @foreach ($d['audience'] as $text)
  • {{ $text }}
  • @endforeach
@isset($d['audience_outro'])

{{ $d['audience_outro'] }}

@endisset
@endif @if (!empty($d['phases']))

Program Framework

{{ $d['framework_intro'] }}

    @foreach ($d['phases'] as $phase)
  1. {{ $phase['when'] }}

    {{ $phase['title'] }}

      @foreach ($phase['items'] as $item)
    • {{ $item }}
    • @endforeach
    @foreach ($phase['text'] as $text)

    {{ $text }}

    @endforeach {{ $phase['flow'] }}
  2. @endforeach
@endif @if (!empty($d['modules']))

Modul Program

    @foreach ($d['modules'] as $i => $module)
  1. Modul {{ $i + 1 }}{{ $module }}
  2. @endforeach
@endif @if (!empty($d['module_details']))

Modul Program

@foreach ($d['module_details'] as $i => $m)
{{ $i + 1 }}{{ $m['title'] }}
@if (!empty($m['subtitle']))

{{ $m['subtitle'] }}

@endif @foreach ($m['groups'] as [$group, $items])

{{ $group }}

    @foreach ($items as $item)
  • {{ $item }}
  • @endforeach
@endforeach
@endforeach
@endif @if (!empty($d['competencies']))

Detail Kompetensi Program

@foreach ($d['competencies'] as $i => $c)
{{ $i + 1 }}{{ $c['name'] }}

{{ $c['text'] }}

Fokus Kompetensi

    @foreach ($c['focus'] as $item)
  • {{ $item }}
  • @endforeach

Expected Outcome{{ $c['outcome'] }}

@endforeach
@endif @if (!empty($d['schedule']))

Jadwal Program {{ $d['schedule']['period'] }}

@foreach ($d['schedule']['columns'] as $col)@endforeach @foreach ($d['schedule']['rows'] as [$week, $date, $day, $mode, $competency]) @endforeach
{{ $col }}
{{ $week }}{{ $date }}{{ $day }}{{ $mode }}{{ $competency }}
@foreach ($d['schedule']['summary'] as [$label, $value])
{{ $label }}
{{ $value }}
@endforeach
@endif @if (!empty($d['method']))

Metodologi Pembelajaran

@foreach ($d['method']['intro'] as $text)

{{ $text }}

@endforeach @if (is_array($d['method']['items'][0]))
    @foreach ($d['method']['items'] as [$name, $text])
  • {{ $name }}{{ $text }}
  • @endforeach
@else
    @foreach ($d['method']['items'] as $text)
  • {{ $text }}
  • @endforeach
@endif

{{ $d['method']['outro'] }}

@endif @if (!empty($d['outcomes']))

Expected Program Outcome

{{ $d['outcomes']['intro'] }}

    @foreach ($d['outcomes']['items'] as [$name, $text])
  • {{ $name }}{{ $text }}
  • @endforeach

Program Output

{{ $d['outputs']['intro'] }}

    @foreach ($d['outputs']['items'] as $text)
  • {{ $text }}
  • @endforeach

Final Review & Program Closing

{{ $d['closing']['intro'] }}

    @foreach ($d['closing']['items'] as $text)
  • {{ $text }}
  • @endforeach

{{ $d['closing']['outro'] }}

@foreach (['value' => 'Program Value', 'positioning' => 'Program Positioning'] as $key => $heading)

{{ $heading }}

{{ $d[$key]['intro'] }}

    @foreach ($d[$key]['items'] as [$name, $text])
  • {{ $name }}{{ $text }}
  • @endforeach
@endforeach @endif @if (!empty($d['facilitator']))

Facilitator

{{ $d['facilitator']['name'] }}

@foreach ($d['facilitator']['bio'] as $text)

{{ $text }}

@endforeach
@endif

Syarat dan Ketentuan Program

@foreach ($d['terms'] as [$term, $text])
{{ $term }}
{{ $text }}
@endforeach
{{-- Menu mengambang di antara konten dan sidebar: muncul setelah tab asli terlewat --}}
@include('partials.inquiry') @endsection