@extends('layouts.app')
@php
$fmt = fn ($n) => number_format($n, 0, ',', '.');
$label = $group['label'];
$pageUrl = route('certification.show', $group['slug']);
$base = request()->getBaseUrl();
$hero = asset('images/assets/'.$group['hero']);
$desc = \Illuminate\Support\Str::limit($group['desc'].' '.$fmt($group['total']).' topik pelatihan dari Value Consult Training.', 160);
$inquiryUrl = route('inquiry.create', ['topic' => $label]);
$hasOnline = collect($group['topics'])->contains('online', true);
$hasInclass = collect($group['topics'])->contains('inclass', true);
$faq = [
["Apa saja topik pada {$label}?", 'Terdapat '.$fmt($group['total']).' topik, antara lain '.collect($group['topics'])->take(4)->pluck('title')->implode('; ').'.'],
['Apa syarat peserta dan siapa penerbit sertifikatnya?', 'Persyaratan peserta, proses ujian, dan penerbit sertifikat berbeda untuk tiap program. Silakan hubungi tim kami untuk informasi program yang Anda minati sebelum mendaftar.'],
['Apakah bisa diselenggarakan secara in-house?', 'Permintaan in-house training dapat diajukan melalui form inquiry. Tim kami akan menindaklanjuti sesuai program yang dibutuhkan.'],
];
@endphp
@section('title', "{$label} | Value Consult Training")
@section('description', $desc)
@section('og_image', $hero)
@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' => 'Certification', 'item' => route('certification.index')],
['@type' => 'ListItem', 'position' => 3, 'name' => $label, 'item' => $pageUrl],
]],
['@type' => 'CollectionPage', '@id' => $pageUrl, 'name' => $label, 'description' => $desc, 'url' => $pageUrl, 'inLanguage' => 'id-ID',
'isPartOf' => ['@id' => url('/').'#website'], 'publisher' => ['@id' => url('/').'#organization'],
'mainEntity' => ['@type' => 'ItemList', 'numberOfItems' => $group['total'], 'itemListElement' => collect($group['topics'])->take(50)->values()
->map(fn ($t, $i) => ['@type' => 'ListItem', 'position' => $i + 1, 'name' => $t['title'], 'url' => url($t['href'])])->all()]],
['@type' => 'FAQPage', 'mainEntity' => collect($faq)->map(fn ($f) => ['@type' => 'Question', 'name' => $f[0], 'acceptedAnswer' => ['@type' => 'Answer', 'text' => $f[1]]])->all()],
]];
@endphp
@endpush
@section('content')
{{-- HERO --}}
{{ $group['desc'] }}
{{ $label }}
Jadwal dapat berubah. Tanda Confirm Running menunjukkan kelas yang sudah dipastikan berjalan.
@if ($schedule)Belum ada jadwal terbuka untuk kategori ini. Ajukan jadwal atau in-house training.
@endif{{ $fmt($group['total']) }} topik
Tidak ada topik yang cocok. Coba kata kunci lain, atau ajukan topik yang Anda butuhkan.
{{ $f[1] }}