forked from projects/fipamo
31 lines
632 B
PHP
31 lines
632 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Services\PaginateService;
|
|
|
|
class DashController extends Controller
|
|
{
|
|
protected $pages;
|
|
|
|
public function __construct(
|
|
PaginateService $paginateService,
|
|
) {
|
|
$this->pages = $paginateService;
|
|
}
|
|
|
|
public function start()
|
|
{
|
|
$status = session('handle') !== null ? true : false;
|
|
$result = [];
|
|
if ($status) {
|
|
$result = $this->pages->getPage(1, 4);
|
|
}
|
|
return view('back.start', [
|
|
"status" => $status,
|
|
"result" => $result,
|
|
"title" => "Fipamo Dash"
|
|
]);
|
|
}
|
|
}
|