fipamo/app/Http/Controllers/DashController.php
ro 57d47909b9
dash controller clean up
there was some stuff in there that wasn't being used anymore, so it's
been removed
2024-03-03 19:50:14 -06:00

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"
]);
}
}