Commit 835c9067 authored by Brian Wangora's avatar Brian Wangora

Director's dashboard route, controller and file created

parent 47945ef6
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class Home2Controller extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware(['auth', 'check.user_status']);
}
/**
* Show the application Director dashboard.
*
* @return \Illuminate\Contracts\Support\Renderable
*/
public function index()
{
return view('home.home2');
}
}
...@@ -380,7 +380,14 @@ return [ ...@@ -380,7 +380,14 @@ return [
'text' => 'Home', 'text' => 'Home',
'url' => 'home', 'url' => 'home',
'icon' => 'fas fa-home', 'icon' => 'fas fa-home',
'can' => 'isClient' 'can' => ['isClient', 'isAdmin'],
],
[
'text' => 'Home 2',
'url' => 'director',
'icon' => 'fas fa-home',
'can' => ['isClient', 'isAdmin'],
], ],
[ [
......
This diff is collapsed.
...@@ -103,6 +103,8 @@ Route::get('notifications/all', [NotificationController::class, 'all'])->name("n ...@@ -103,6 +103,8 @@ Route::get('notifications/all', [NotificationController::class, 'all'])->name("n
Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home'); Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home');
Route::get('/director', [App\Http\Controllers\Home2Controller::class, 'index'])->name('home2');
Route::get('/dashboard', [App\Http\Controllers\DashboardController::class, 'index'])->name('dashboard'); Route::get('/dashboard', [App\Http\Controllers\DashboardController::class, 'index'])->name('dashboard');
Route::get('/blocked', BlockedController::class)->name('blocked'); Route::get('/blocked', BlockedController::class)->name('blocked');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment