@extends('front.layouts.app') @section('main') @include('front.sections.hero')
{{-- EVENTS --}} @if($siteSettings->show_events)
@include('front.components.event-list')
@endif {{-- WELCOME --}} @if($siteSettings->show_welcome)

{{ $siteSettings->welcome_title }}

{!! $siteSettings->welcome_text !!}

@endif {{-- GALLERY --}} @if($siteSettings->show_gallery) @endif {{-- JOIN US --}} @if($siteSettings->show_join_us) @endif {{-- VIDEOS --}} @if($siteSettings->show_videos)
@php $videoObj = (object) [ 'platform' => $siteSettings->home_video_platform, 'embed_url' => $siteSettings->home_video_url, 'title' => null, ]; @endphp @include('front.components.video', ['video' => $videoObj])
@endif {{-- MAPS --}} @if($siteSettings->show_maps) @foreach($maps as $map)
@include('front.components.map', ['map' => $map])
@endforeach @endif
{{-- TRAINERS --}} @if($siteSettings->show_trainers && $trainers->count())
@if($siteSettings->trainers_title)

{{ $siteSettings->trainers_title }}

@endif
@foreach($trainers as $trainer)
{{ $trainer->name }}

{{ $trainer->name }}

{{ $trainer->info }}

@php $link = $trainer->url; if ($trainer->link_type === 'pages') { $link = url($link); } elseif ( $link && !\Illuminate\Support\Str::startsWith($link, ['http://', 'https://', '/']) ) { $link = url($link); } @endphp {{ __('Devamını Oku', [], session('locale', 'en')) }}
@endforeach
@endif
@endsection