@extends('layouts.public') @section('public-content') {{-- Hero --}}

{{ $school->name }}

@if($settings['motto'] ?? false)

"{{ $settings['motto'] }}"

@endif

{{ $settings['about'] ?? 'Nurturing Excellence, Building Futures' }}

{{-- Quick Info --}}

{{ $school->studentModels()->count() }}

Students

{{ $school->teacherModels()->count() }}

Teachers

{{ $school->classrooms()->count() }}

Classes

{{ $school->subjects()->count() }}

Subjects

{{-- Latest News --}} @if($news->count())

Latest News

@foreach($news as $article)

{{ $article->created_at->format('d M Y') }}

{{ $article->title }}

{{ Str::limit(strip_tags($article->content), 120) }}

@endforeach
View All News →
@endif {{-- Upcoming Events --}} @if($events->count())

Upcoming Events

@foreach($events as $event)
{{ $event->event_date->format('M') }} {{ $event->event_date->format('d') }}

{{ $event->title }}

{{ $event->location ?? '' }} {{ $event->event_time ? 'at ' . $event->event_time : '' }}

@endforeach
@endif {{-- Testimonials --}} @if($testimonials->count())

What People Say

@foreach($testimonials as $t)
@for($i = 0; $i < $t->rating; $i++)@endfor

"{{ $t->message }}"

{{ $t->name }} · {{ $t->role }}

@endforeach
@endif @endsection