ldc-le-gaulois-pro/app/Http/Controllers/Fo/BrigadeController.php
2026-01-19 14:47:29 +01:00

26 lines
565 B
PHP

<?php
namespace App\Http\Controllers\Fo;
use App\Http\Controllers\Controller;
use App\Models\BrigadeSection;
class BrigadeController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Contracts\View\View
*/
public function index(): \Illuminate\Contracts\View\View
{
$sections = BrigadeSection::query()
->where('published', true)
->orderBy('order')
->get();
return view('fo.pages.brigade', compact(
'sections',
));
}
}