Next/Future invoices for users

This commit is contained in:
Deon George
2020-02-08 22:51:50 +11:00
parent b61e00d80f
commit eb316f65fc
18 changed files with 277 additions and 96 deletions

View File

@@ -24,8 +24,11 @@ class UserHomeController extends Controller
*/
public function home(User $o=NULL): View
{
if (is_null($o))
$o = Auth::user();
if ($o)
return View('u.home',['o'=>$o]);
// If User was null, then test and see what type of logged on user we have
$o = Auth::user();
switch (Auth::user()->role()) {
case 'customer':