42 lines
980 B
PHP
42 lines
980 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Fo;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Models\Content;
|
|
|
|
class ViewContentController extends Controller
|
|
{
|
|
/**
|
|
* Show the rules view
|
|
*
|
|
* @return \Illuminate\Contracts\View\View|\Illuminate\Contracts\View\Factory
|
|
*/
|
|
public function reglement()
|
|
{
|
|
$content = Content::find(3);
|
|
return view('theme::fo.reglement', compact('content'));
|
|
}
|
|
|
|
/**
|
|
* Show the privacy view
|
|
*
|
|
* @return \Illuminate\Contracts\View\View|\Illuminate\Contracts\View\Factory
|
|
*/
|
|
public function charte()
|
|
{
|
|
$content = Content::find(2);
|
|
return view('theme::fo.charte', compact('content'));
|
|
}
|
|
|
|
/**
|
|
* Show the legals view
|
|
*
|
|
* @return \Illuminate\Contracts\View\View|\Illuminate\Contracts\View\Factory
|
|
*/
|
|
public function legals()
|
|
{
|
|
$content = Content::find(1);
|
|
return view('theme::fo.legals', compact('content'));
|
|
}
|
|
}
|