2019-05-28 17:29:15 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
|
2021-09-26 22:06:49 +02:00
|
|
|
use App\Services\SettingServiceInterface;
|
2019-05-28 17:29:15 +02:00
|
|
|
use Illuminate\Http\Request;
|
2021-09-26 22:06:49 +02:00
|
|
|
use Illuminate\Support\Collection;
|
2019-05-28 17:29:15 +02:00
|
|
|
|
|
|
|
class SinglePageController extends Controller
|
|
|
|
{
|
|
|
|
|
2021-09-26 22:06:49 +02:00
|
|
|
/**
|
|
|
|
* The Settings Service instance.
|
|
|
|
*/
|
|
|
|
protected SettingServiceInterface $settingService;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Create a new controller instance.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
public function __construct(SettingServiceInterface $SettingServiceInterface)
|
|
|
|
{
|
|
|
|
$this->settingService = $SettingServiceInterface;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2019-05-28 17:29:15 +02:00
|
|
|
/**
|
|
|
|
* return the main view
|
|
|
|
* @return view
|
|
|
|
*/
|
|
|
|
public function index()
|
|
|
|
{
|
2021-09-26 22:06:49 +02:00
|
|
|
return view('landing')->with('appSettings', $this->settingService->all()->toJson());
|
2019-05-28 17:29:15 +02:00
|
|
|
}
|
|
|
|
}
|