2022-05-12 16:03:40 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
|
|
|
|
|
|
use App\Enums\Page;
|
|
|
|
|
use App\Models\SeoDatum;
|
|
|
|
|
use App\Models\Text;
|
|
|
|
|
|
|
|
|
|
class PolicyController extends Controller
|
|
|
|
|
{
|
|
|
|
|
public function index()
|
|
|
|
|
{
|
|
|
|
|
$privacy_policy = Text::where('page', Page::charte()->value)->first();
|
|
|
|
|
|
2022-08-11 12:34:27 +02:00
|
|
|
// make ghost seoDatum from the gamme
|
|
|
|
|
$seoDatum = new SeoDatum();
|
2022-05-12 16:03:40 +02:00
|
|
|
$seoDatum->title = $privacy_policy->title;
|
|
|
|
|
|
2022-05-13 13:19:40 +02:00
|
|
|
return view('front.policy', compact('seoDatum', 'privacy_policy'));
|
2022-05-12 16:03:40 +02:00
|
|
|
}
|
|
|
|
|
}
|