@extends('layouts.app')
@section('title', 'Travel Indo')
@section('content')
@php
$c = $contentValue;
// Format judul CMS: baris pertama jadi judul utama, baris kedua jadi aksen.
$headline = static function (string $key) use ($c): string {
$lines = explode("\n", $c($key), 2);
return e($lines[0]).(isset($lines[1]) ? '
'.e($lines[1]).'' : '');
};
$specialties = range(1, 5);
$reasons = range(1, 4);
$trips = range(1, 3);
$gallery = range(1, 7);
@endphp
{{-- Hero dengan foto yang bisa diganti lewat panel admin. --}}
@foreach (range(1, 3) as $slide)
{{ $c("home.hero.slide{$slide}.caption") }}
@endforeach
{{ $c('home.hero.overline') }}
{!! $headline('home.hero.title') !!}
{!! \App\Support\RichText::sanitize($c('home.hero.description')) !!}
@foreach (range(0, 2) as $dot)
@endforeach
{{-- Pengenalan singkat Travel Indo. --}}
01 / {{ $c('home.intro.eyebrow') }}
{{-- Daftar spesialisasi layanan perjalanan. --}}
02 / {{ $c('home.specialties.eyebrow') }}
{!! $headline('home.specialties.title') !!}
@foreach ($specialties as $item)
0{{ $item }}
{{ $c("home.specialties.{$item}.title") }}
{!! \App\Support\RichText::sanitize($c("home.specialties.{$item}.description")) !!}
@endforeach
{{-- Alasan memilih Travel Indo. --}}
03 / {{ $c('home.reasons.eyebrow') }}
{!! $headline('home.reasons.title') !!}
@foreach ($reasons as $item)
{{ $c("home.reasons.{$item}.title") }}
{!! \App\Support\RichText::sanitize($c("home.reasons.{$item}.description")) !!}
@endforeach
{{-- Paket dan inspirasi perjalanan. --}}
04 / {{ $c('home.trips.eyebrow') }}
{!! $headline('home.trips.title') !!}
{{-- Galeri perjalanan terbaru. --}}
@include('partials.contact-footer')
@endsection