Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
I
IPRSv2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Michael Ngei
IPRSv2
Commits
835c9067
Commit
835c9067
authored
Apr 07, 2025
by
Brian Wangora
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Director's dashboard route, controller and file created
parent
47945ef6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
345 additions
and
1 deletion
+345
-1
Home2Controller.php
app/Http/Controllers/Home2Controller.php
+28
-0
adminlte.php
config/adminlte.php
+8
-1
home2.blade.php
resources/views/home/home2.blade.php
+307
-0
web.php
routes/web.php
+2
-0
No files found.
app/Http/Controllers/Home2Controller.php
0 → 100644
View file @
835c9067
<?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'
);
}
}
config/adminlte.php
View file @
835c9067
...
@@ -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'
],
],
],
[
[
...
...
resources/views/home/home2.blade.php
0 → 100644
View file @
835c9067
This diff is collapsed.
Click to expand it.
routes/web.php
View file @
835c9067
...
@@ -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'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment