22 lines
639 B
PHP
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]);
|
|
}
|
|
}
|