ldc-legaulois/app/Http/Controllers/Fo/CommitmentController.php
2026-06-04 14:20:18 +02:00

22 lines
639 B
PHP

<?php
namespace App\Http\Controllers\Fo;
use App\Enums\StaticPageType;
use App\Http\Controllers\Controller;
use App\Models\StaticPage;
class CommitmentController extends Controller
{
/**
* Display the given breeding page.
* @return \Illuminate\Contracts\View\View
*/
public function getRestpectEarthPage(): \Illuminate\Contracts\View\View
{
$staticPageModel = StaticPage::getCachedStaticPage(StaticPageType::respectTheEarth);
$staticPageModel->load(['sections.blocks', 'sections.pictos']);
return view('fo.pages.commitments.respect', ['staticPageModel' => $staticPageModel]);
}
}