<?php

namespace App\Http\Controllers;

use App\Models\Coach;
use App\Models\ContentBlock;
use Illuminate\View\View;

class AboutController extends Controller
{
    public function index(): View
    {
        return view('pages.about', [
            'page' => 'about',
            'blocks' => ContentBlock::forPage('about'),
            'coaches' => Coach::query()->where('show_on_about', true)->where('is_active', true)->orderBy('sort_order')->get(),
        ]);
    }
}
