2026-06-04 14:20:18 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Http\Controllers\Fo;
|
|
|
|
|
|
|
|
|
|
use App\Enums\StaticPageType;
|
|
|
|
|
use App\Http\Controllers\Controller;
|
|
|
|
|
use App\Models\StaticPage;
|
|
|
|
|
|
|
|
|
|
class CommitmentController extends Controller
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
/**
|
2026-06-05 18:30:02 +02:00
|
|
|
* Display the given commitment page.
|
2026-06-04 14:20:18 +02:00
|
|
|
* @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]);
|
|
|
|
|
}
|
2026-06-05 12:15:40 +02:00
|
|
|
|
|
|
|
|
/**
|
2026-06-05 18:30:02 +02:00
|
|
|
* Display the given commitment page.
|
2026-06-05 12:15:40 +02:00
|
|
|
* @return \Illuminate\Contracts\View\View
|
|
|
|
|
*/
|
|
|
|
|
public function getLivingToghether(): \Illuminate\Contracts\View\View
|
|
|
|
|
{
|
|
|
|
|
$staticPageModel = StaticPage::getCachedStaticPage(StaticPageType::forLivingTogether);
|
|
|
|
|
$staticPageModel->load(['sections.blocks', 'sections.pictos']);
|
|
|
|
|
return view('fo.pages.commitments.life', ['staticPageModel' => $staticPageModel]);
|
|
|
|
|
}
|
2026-06-05 18:30:02 +02:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Display the given commitment brand poultry page.
|
|
|
|
|
* @return \Illuminate\Contracts\View\View
|
|
|
|
|
*/
|
|
|
|
|
public function getBrandPoultry(): \Illuminate\Contracts\View\View
|
|
|
|
|
{
|
|
|
|
|
$staticPageModel = StaticPage::getCachedStaticPage(StaticPageType::poultryBrand);
|
|
|
|
|
$staticPageModel->load(['sections.blocks', 'sections.pictos']);
|
|
|
|
|
return view('fo.pages.commitments.brand', ['staticPageModel' => $staticPageModel]);
|
|
|
|
|
}
|
2026-06-04 14:20:18 +02:00
|
|
|
}
|