@if (! empty($slides) && $slides->count() > 0) @php $hero = \App\Services\Website\WebsiteSettings::for($websiteSchool)->heroOptions(); $resolve = function (?string $raw) use ($websiteSchool): ?string { $u = trim((string) $raw); if ($u === '') { return null; } if (preg_match('#^https?://#i', $u)) { return $u; } $name = 'public.' . str_replace('/', '-', $u); return \Illuminate\Support\Facades\Route::has($name) ? tenant_url($name, $websiteSchool->slug) : url($websiteSchool->slug . '/' . ltrim($u, '/')); }; @endphp
@foreach ($slides as $slide) @php $align = match ($slide->text_position ?? 'left') { 'center' => ['wrap' => 'justify-center', 'block' => 'text-center mx-auto', 'row' => 'sm:justify-center'], 'right' => ['wrap' => 'justify-end', 'block' => 'text-right ml-auto', 'row' => 'sm:justify-end'], default => ['wrap' => 'justify-start', 'block' => 'text-left', 'row' => ''], }; @endphp
{{-- Background image — fills the entire slide --}} {{-- Readability overlay — sits above image, below text --}} @if ($slide->overlay_enabled)
@endif {{-- Overlay content --}}
@if ($slide->subtitle)

{{ $slide->subtitle }}

@endif

{{ $slide->title }}

@if ($slide->description)

{{ $slide->description }}

@endif @if ($slide->button_text || $slide->button2_text)
@if ($slide->button_text && $resolve($slide->button_url)) {{ $slide->button_text }} @endif @if ($slide->button2_text && $resolve($slide->button2_url)) {{ $slide->button2_text }} @endif
@endif
@endforeach {{-- Navigation arrows --}} @if ($hero['show_arrows']) @endif {{-- Navigation dots --}} @if ($hero['show_dots'])
@endif
@else

Admissions open for {{ now()->year }}/{{ now()->addYear()->format('y') }}

{{ $ws->content('welcome_title') }}

{{ $ws->branding()['tagline'] }}

@endif