You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
546 B
29 lines
546 B
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Entities\Pages\PagesRepository;
|
|
|
|
class PagesController extends Controller {
|
|
private $repo;
|
|
|
|
|
|
public function __construct(PagesRepository $repo)
|
|
{
|
|
$this->repo = $repo;
|
|
}
|
|
|
|
public function home()
|
|
{
|
|
$totalIncome = $this->repo->getTotalIncome();
|
|
$totalExpenditure = $this->repo->getTotalExpenditure();
|
|
|
|
return view('pages.home', compact('totalIncome','totalExpenditure'));
|
|
}
|
|
|
|
public function about()
|
|
{
|
|
return view('pages.about');
|
|
}
|
|
|
|
}
|