@extends('layouts.app') @section('title', __('messages.site_name').' — '.__('messages.site_tagline')) @section('content') {{-- Hero --}}

{{ __('messages.hero_kicker') }}

{{ __('messages.hero_title') }}

{{ __('messages.hero_subtitle') }}

{{-- Stats strip --}}
@foreach ([ 'horses' => __('messages.stat_horses'), 'races' => __('messages.stat_races'), 'jockeys' => __('messages.stat_jockeys'), 'organizers' => __('messages.stat_organizers'), ] as $key => $label)
{{ $stats[$key] }}+
{{ $label }}
@endforeach
{{-- Upcoming races --}}

{{ __('messages.home_upcoming_races') }}

{{ __('messages.view_all') }} →
@if ($upcomingRaces->isEmpty())

{{ __('messages.no_upcoming_races') }}

@else
@foreach ($upcomingRaces as $race)

{{ $race->starts_at->translatedFormat('d M, H:i') }}

{{ $race->name }}

{{ $race->location?->name }}

{{ __('messages.status_'.$race->status) }}
@endforeach
@endif
{{-- Top horses / jockeys --}}

{{ __('messages.home_top_horses') }}

    @foreach ($topHorses as $i => $horse)
  1. {{ $i + 1 }} {{ $horse->name }} {{ $horse->points }} {{ __('messages.points_short') }}
  2. @endforeach

{{ __('messages.home_top_jockeys') }}

    @foreach ($topJockeys as $i => $jockey)
  1. {{ $i + 1 }} {{ $jockey->user->fullName() }} {{ $jockey->points }} {{ __('messages.points_short') }}
  2. @endforeach
{{-- News --}} @if ($latestNews->isNotEmpty())

{{ __('messages.home_latest_news') }}

@foreach ($latestNews as $item)

{{ $item->title }}

{{ \Illuminate\Support\Str::limit($item->excerpt, 100) }}

@endforeach
@endif @endsection