Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sports-mis
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rajdeep Dutta
sports-mis
Commits
8fce89f1
Commit
8fce89f1
authored
Jun 26, 2025
by
Rajdeep Dutta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new upload1
parent
e67aa64b
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
257 additions
and
515 deletions
+257
-515
app/Http/Controllers/HomeController.php
app/Http/Controllers/HomeController.php
+2
-1
app/Http/Controllers/UserManagementController.php
app/Http/Controllers/UserManagementController.php
+42
-0
app/Http/Middleware/RoleMiddleware.php
app/Http/Middleware/RoleMiddleware.php
+20
-0
app/Models/User.php
app/Models/User.php
+1
-0
database/migrations/2025_06_26_065443_add_role_to_users_table.php
.../migrations/2025_06_26_065443_add_role_to_users_table.php
+3
-3
public/dashboard_assets/image/bg-login.jpg
public/dashboard_assets/image/bg-login.jpg
+0
-0
resources/views/auth/register.blade.php
resources/views/auth/register.blade.php
+15
-0
resources/views/layouts/head.blade.php
resources/views/layouts/head.blade.php
+1
-1
resources/views/layouts/login.blade.php
resources/views/layouts/login.blade.php
+0
-0
resources/views/layouts/nav.blade.php
resources/views/layouts/nav.blade.php
+0
-173
resources/views/layouts/roles.blade.php
resources/views/layouts/roles.blade.php
+66
-0
resources/views/layouts/sidebar.blade.php
resources/views/layouts/sidebar.blade.php
+79
-334
resources/views/login.blade.php
resources/views/login.blade.php
+17
-2
routes/web.php
routes/web.php
+11
-1
No files found.
app/Http/Controllers/HomeController.php
View file @
8fce89f1
...
...
@@ -18,13 +18,14 @@ public function dashboard() {
}
public
function
showLoginForm
()
{
return
view
(
'login'
);
return
view
(
'login'
);
// or 'auth.login' depending on your folder
}
public
function
loginProcess
(
Request
$request
)
{
$request
->
validate
([
'email'
=>
'required|email'
,
'password'
=>
'required'
,
'role'
=>
'required'
,
]);
$credentials
=
$request
->
only
(
'email'
,
'password'
);
...
...
app/Http/Controllers/UserManagementController.php
0 → 100644
View file @
8fce89f1
<?php
namespace
App\Http\Controllers
;
use
Illuminate\Http\Request
;
use
App\Models\User
;
use
Illuminate\Support\Facades\Hash
;
class
UserManagementController
extends
Controller
{
public
function
roleAccess
()
{
return
view
(
'layouts.roles'
);
// View will be resources/views/user-management/roles.blade.php
}
public
function
assignRole
(
Request
$request
)
{
$request
->
validate
([
'email'
=>
'required|email'
,
'password'
=>
'required|string'
,
'role'
=>
'required|in:player,coach,manager'
,
]);
// Find user by email
$user
=
User
::
where
(
'email'
,
$request
->
email
)
->
first
();
if
(
!
$user
)
{
return
back
()
->
with
(
'error'
,
'User not found.'
);
}
if
(
!
Hash
::
check
(
$request
->
password
,
$user
->
password
))
{
return
back
()
->
with
(
'error'
,
'Incorrect password.'
);
}
// Assign the role
$user
->
role
=
$request
->
role
;
$user
->
save
();
return
back
()
->
with
(
'success'
,
'Role "'
.
$request
->
role
.
'" assigned to '
.
$user
->
email
);
}
}
app/Http/Middleware/RoleMiddleware.php
0 → 100644
View file @
8fce89f1
<?php
namespace
App\Http\Middleware
;
use
Closure
;
use
Illuminate\Http\Request
;
use
Symfony\Component\HttpFoundation\Response
;
class
RoleMiddleware
{
/**
* Handle an incoming request.
*
* @param \Closure(\Illuminate\Http\Request): (\Symfony\Component\HttpFoundation\Response) $next
*/
public
function
handle
(
Request
$request
,
Closure
$next
)
:
Response
{
return
$next
(
$request
);
}
}
app/Models/User.php
View file @
8fce89f1
...
...
@@ -21,6 +21,7 @@ class User extends Authenticatable
'name'
,
'email'
,
'password'
,
'role'
,
];
/**
...
...
database/migrations/2025_06_2
4_111007
_add_role_to_users_table.php
→
database/migrations/2025_06_2
6_065443
_add_role_to_users_table.php
View file @
8fce89f1
...
...
@@ -12,10 +12,10 @@
public
function
up
()
:
void
{
Schema
::
table
(
'users'
,
function
(
Blueprint
$table
)
{
$table
->
string
(
'role'
)
->
default
(
'fan'
);
});
$table
->
string
(
'role'
)
->
nullable
();
});
}
/**
* Reverse the migrations.
*/
...
...
public/dashboard_assets/image/bg-login.jpg
0 → 100644
View file @
8fce89f1
263 KB
resources/views/auth/register.blade.php
View file @
8fce89f1
...
...
@@ -14,6 +14,21 @@
<!-- AdminLTE CSS -->
<link
rel=
"stylesheet"
href=
"{{ asset('dashboard_assets/css/adminlte.min.css') }}"
>
</head>
<style>
body
.login-page
{
background-image
:
url('{{ asset('dashboard_assets/image/bg-login.jpg')
}
}'
);
background-size
:
cover
;
background-position
:
center
;
background-repeat
:
no-repeat
;
}
.login-box
{
background-color
:
rgba
(
255
,
255
,
255
,
0.95
);
border-radius
:
10px
;
padding
:
20px
;
box-shadow
:
0
0
20px
rgba
(
0
,
0
,
0
,
0.2
);
}
</style>
<body
class=
"hold-transition register-page"
>
<div
class=
"register-box"
>
...
...
resources/views/layouts/head.blade.php
View file @
8fce89f1
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<title>
AdminLTE v4 | Dashboard
</title>
<title>
Sports MIS
</title>
<!--begin::Primary Meta Tags-->
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<meta
name=
"title"
content=
"AdminLTE v4 | Dashboard"
/>
...
...
resources/views/layouts/login.blade.php
deleted
100644 → 0
View file @
e67aa64b
resources/views/layouts/nav.blade.php
View file @
8fce89f1
...
...
@@ -27,178 +27,5 @@
<button
type=
"submit"
class=
"btn btn-outline-danger btn-large"
>
Logout
</button>
</form>
</li>
<!--end::Navbar Search-->
<!--begin::Messages Dropdown Menu-->
{{--
<li
class=
"nav-item dropdown"
>
<a
class=
"nav-link"
data-bs-toggle=
"dropdown"
href=
"#"
>
<i
class=
"bi bi-chat-text"
></i>
<span
class=
"navbar-badge badge text-bg-danger"
>
3
</span>
</a>
--}}
{{--
<div
class=
"dropdown-menu dropdown-menu-lg dropdown-menu-end"
>
<a
href=
"#"
class=
"dropdown-item"
>
<!--begin::Message-->
<div
class=
"d-flex"
>
<div
class=
"flex-shrink-0"
>
<img
src=
"../../dist/assets/img/user1-128x128.jpg"
alt=
"User Avatar"
class=
"img-size-50 rounded-circle me-3"
/>
</div>
<div
class=
"flex-grow-1"
>
<h3
class=
"dropdown-item-title"
>
Brad Diesel
<span
class=
"float-end fs-7 text-danger"
><i
class=
"bi bi-star-fill"
></i
></span>
</h3>
<p
class=
"fs-7"
>
Call me whenever you can...
</p>
<p
class=
"fs-7 text-secondary"
>
<i
class=
"bi bi-clock-fill me-1"
></i>
4 Hours Ago
</p>
</div>
</div>
<!--end::Message-->
</a>
<div
class=
"dropdown-divider"
></div>
<a
href=
"#"
class=
"dropdown-item"
>
<!--begin::Message-->
<div
class=
"d-flex"
>
<div
class=
"flex-shrink-0"
>
<img
src=
"../../dist/assets/img/user8-128x128.jpg"
alt=
"User Avatar"
class=
"img-size-50 rounded-circle me-3"
/>
</div>
<div
class=
"flex-grow-1"
>
<h3
class=
"dropdown-item-title"
>
John Pierce
<span
class=
"float-end fs-7 text-secondary"
>
<i
class=
"bi bi-star-fill"
></i>
</span>
</h3>
<p
class=
"fs-7"
>
I got your message bro
</p>
<p
class=
"fs-7 text-secondary"
>
<i
class=
"bi bi-clock-fill me-1"
></i>
4 Hours Ago
</p>
</div>
</div>
<!--end::Message-->
</a>
<div
class=
"dropdown-divider"
></div>
<a
href=
"#"
class=
"dropdown-item"
>
<!--begin::Message-->
<div
class=
"d-flex"
>
<div
class=
"flex-shrink-0"
>
<img
src=
"../../dist/assets/img/user3-128x128.jpg"
alt=
"User Avatar"
class=
"img-size-50 rounded-circle me-3"
/>
</div>
<div
class=
"flex-grow-1"
>
<h3
class=
"dropdown-item-title"
>
Nora Silvester
<span
class=
"float-end fs-7 text-warning"
>
<i
class=
"bi bi-star-fill"
></i>
</span>
</h3>
<p
class=
"fs-7"
>
The subject goes here
</p>
<p
class=
"fs-7 text-secondary"
>
<i
class=
"bi bi-clock-fill me-1"
></i>
4 Hours Ago
</p>
</div>
</div>
<!--end::Message-->
</a>
<div
class=
"dropdown-divider"
></div>
<a
href=
"#"
class=
"dropdown-item dropdown-footer"
>
See All Messages
</a>
</div>
--}}
{{--
</li>
--}}
<!--end::Messages Dropdown Menu-->
<!--begin::Notifications Dropdown Menu-->
{{--
<li
class=
"nav-item dropdown"
>
<a
class=
"nav-link"
data-bs-toggle=
"dropdown"
href=
"#"
>
<i
class=
"bi bi-bell-fill"
></i>
<span
class=
"navbar-badge badge text-bg-warning"
>
15
</span>
</a>
<div
class=
"dropdown-menu dropdown-menu-lg dropdown-menu-end"
>
<span
class=
"dropdown-item dropdown-header"
>
15 Notifications
</span>
<div
class=
"dropdown-divider"
></div>
<a
href=
"#"
class=
"dropdown-item"
>
<i
class=
"bi bi-envelope me-2"
></i>
4 new messages
<span
class=
"float-end text-secondary fs-7"
>
3 mins
</span>
</a>
<div
class=
"dropdown-divider"
></div>
<a
href=
"#"
class=
"dropdown-item"
>
<i
class=
"bi bi-people-fill me-2"
></i>
8 friend requests
<span
class=
"float-end text-secondary fs-7"
>
12 hours
</span>
</a>
<div
class=
"dropdown-divider"
></div>
<a
href=
"#"
class=
"dropdown-item"
>
<i
class=
"bi bi-file-earmark-fill me-2"
></i>
3 new reports
<span
class=
"float-end text-secondary fs-7"
>
2 days
</span>
</a>
<div
class=
"dropdown-divider"
></div>
<a
href=
"#"
class=
"dropdown-item dropdown-footer"
>
See All Notifications
</a>
</div>
</li>
--}}
<!--end::Notifications Dropdown Menu-->
<!--begin::Fullscreen Toggle-->
{{--
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"#"
data-lte-toggle=
"fullscreen"
>
<i
data-lte-icon=
"maximize"
class=
"bi bi-arrows-fullscreen"
></i>
<i
data-lte-icon=
"minimize"
class=
"bi bi-fullscreen-exit"
style=
"display: none"
></i>
</a>
</li>
--}}
<!--end::Fullscreen Toggle-->
<!--begin::User Menu Dropdown-->
{{--
<li
class=
"nav-item dropdown user-menu"
>
<a
href=
"#"
class=
"nav-link dropdown-toggle"
data-bs-toggle=
"dropdown"
>
<img
src=
"../../dist/assets/img/user2-160x160.jpg"
class=
"user-image rounded-circle shadow"
alt=
"User Image"
/>
<span
class=
"d-none d-md-inline"
>
Alexander Pierce
</span>
</a>
<ul
class=
"dropdown-menu dropdown-menu-lg dropdown-menu-end"
>
<!--begin::User Image-->
<li
class=
"user-header text-bg-primary"
>
<img
src=
"../../dist/assets/img/user2-160x160.jpg"
class=
"rounded-circle shadow"
alt=
"User Image"
/>
<p>
Alexander Pierce - Web Developer
<small>
Member since Nov. 2023
</small>
</p>
</li>
<!--end::User Image-->
<!--begin::Menu Body-->
<li
class=
"user-body"
>
<!--begin::Row-->
<div
class=
"row"
>
<div
class=
"col-4 text-center"
><a
href=
"#"
>
Followers
</a></div>
<div
class=
"col-4 text-center"
><a
href=
"#"
>
Sales
</a></div>
<div
class=
"col-4 text-center"
><a
href=
"#"
>
Friends
</a></div>
</div>
<!--end::Row-->
</li>
<!--end::Menu Body-->
<!--begin::Menu Footer-->
<li
class=
"user-footer"
>
<a
href=
"#"
class=
"btn btn-default btn-flat"
>
Profile
</a>
<a
href=
"#"
class=
"btn btn-default btn-flat float-end"
>
Sign out
</a>
</li>
<!--end::Menu Footer-->
</ul>
</li>
--}}
<!--end::User Menu Dropdown-->
</ul>
<!--end::End Navbar Links-->
</div>
<!--end::Container-->
</nav>
\ No newline at end of file
resources/views/layouts/roles.blade.php
0 → 100644
View file @
8fce89f1
@
extends
(
'layouts.master'
)
@
section
(
'content'
)
<
div
class
=
"container mt-4"
>
<
h1
class
=
"mb-4"
>
Role
-
based
Access
</
h1
>
{{
--
Flash
message
--
}}
@
if
(
session
(
'success'
))
<
div
class
=
"alert alert-success"
>
{{
session
(
'success'
)
}}
</
div
>
@
endif
{{
--
Role
Assignment
Form
--
}}
<
div
class
=
"card mb-4"
>
<
div
class
=
"card-header"
><
b
>
Assign
Role
to
User
</
b
></
div
>
<
div
class
=
"card-body"
>
<
form
action
=
"{{ route('user.assignRole') }}"
method
=
"POST"
>
@
csrf
<
div
class
=
"mb-3"
>
<
label
for
=
"email"
class
=
"form-label"
>
User
Email
</
label
>
<
input
type
=
"email"
name
=
"email"
class
=
"form-control"
required
>
</
div
>
<
div
class
=
"mb-3"
>
<
label
for
=
"password"
class
=
"form-label"
>
User
Password
</
label
>
<
input
type
=
"password"
name
=
"password"
class
=
"form-control"
required
>
</
div
>
<
div
class
=
"mb-3"
>
<
label
for
=
"role"
class
=
"form-label"
>
Select
Role
</
label
>
<
select
name
=
"role"
class
=
"form-select"
required
>
<
option
value
=
""
>--
Select
Role
--</
option
>
<
option
value
=
"player"
>
Player
</
option
>
<
option
value
=
"coach"
>
Coach
</
option
>
<
option
value
=
"manager"
>
Manager
</
option
>
</
select
>
</
div
>
<
button
type
=
"submit"
class
=
"btn btn-primary"
>
Assign
Role
</
button
>
</
form
>
</
div
>
</
div
>
{{
--
Existing
Roles
Table
--
}}
<
h4
>
Existing
Role
Assignments
</
h4
>
<
table
class
=
"table table-bordered"
>
<
thead
>
<
tr
>
<
th
>
User
</
th
>
<
th
>
Assigned
Role
</
th
>
</
tr
>
</
thead
>
<
tbody
>
{{
--
Example
static
content
;
replace
with
dynamic
roles
--
}}
<
tr
>
<
td
>
john
@
example
.
com
</
td
>
<
td
>
Coach
</
td
>
</
tr
>
<
tr
>
<
td
>
alice
@
example
.
com
</
td
>
<
td
>
Admin
</
td
>
</
tr
>
</
tbody
>
</
table
>
</
div
>
@
endsection
resources/views/layouts/sidebar.blade.php
View file @
8fce89f1
...
...
@@ -4,14 +4,10 @@
<!--begin::Brand Link-->
<a
href=
"./index.html"
class=
"brand-link"
>
<!--begin::Brand Image-->
<img
src=
"../../dist/assets/img/AdminLTELogo.png"
alt=
"AdminLTE Logo"
class=
"brand-image opacity-75 shadow"
/>
<!--end::Brand Image-->
<!--begin::Brand Text-->
<span
class=
"brand-text fw-light"
>
AdminLTE 4
</span>
<span
class=
"brand-text fw-light"
>
Sports MIS
</span>
<!--end::Brand Text-->
</a>
<!--end::Brand Link-->
...
...
@@ -29,435 +25,184 @@ class="nav sidebar-menu flex-column"
>
<li
class=
"nav-item menu-open"
>
<a
href=
"#"
class=
"nav-link active"
>
<i
class=
"nav-icon bi bi-
speedometer
"
></i>
<i
class=
"nav-icon bi bi-
person
"
></i>
<p>
Dashboard
User Management
<i
class=
"nav-arrow bi bi-chevron-right"
></i>
</p>
</a>
<ul
class=
"nav nav-treeview"
>
<li
class=
"nav-item"
>
<a
href=
"
./index.html
"
class=
"nav-link active"
>
<i
class=
"nav-icon bi bi-
circle
"
></i>
<p>
Dashboard v1
</p>
<a
href=
"
{{ route('user.roles') }}
"
class=
"nav-link active"
>
<i
class=
"nav-icon bi bi-
arrow-right
"
></i>
<p>
Role-based Access
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"./index2.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-
circle
"
></i>
<p>
Dashboard v2
</p>
<i
class=
"nav-icon bi bi-
arrow-right
"
></i>
<p>
User Registration
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"./index3.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-
circle
"
></i>
<p>
Dashboard v3
</p>
<i
class=
"nav-icon bi bi-
arrow-right
"
></i>
<p>
User Profiles
</p>
</a>
</li>
</ul>
</li>
<li
class=
"nav-item"
>
<a
href=
"./generate/theme.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-palette"
></i>
<p>
Theme Generate
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"#"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-box-seam-fill"
></i>
<p>
Widgets
<i
class=
"nav-arrow bi bi-chevron-right"
></i>
</p>
</a>
<ul
class=
"nav nav-treeview"
>
<li
class=
"nav-item"
>
<a
href=
"./widgets/small-box.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-circle"
></i>
<p>
Small Box
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"./widgets/info-box.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-circle"
></i>
<p>
info Box
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"./widgets/cards.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-circle"
></i>
<p>
Cards
</p>
<a
href=
"./index3.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-arrow-right"
></i>
<p>
Bulk Management
</p>
</a>
</li>
</ul>
</li>
<li
class=
"nav-item"
>
<a
href=
"#"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-c
lipboard-fill
"
></i>
<li
class=
"nav-item
menu-open
"
>
<a
href=
"#"
class=
"nav-link
active
"
>
<i
class=
"nav-icon bi bi-c
alendar-event
"
></i>
<p>
Layout Options
<span
class=
"nav-badge badge text-bg-secondary me-3"
>
6
</span>
Event and Tournament Management
<i
class=
"nav-arrow bi bi-chevron-right"
></i>
</p>
</a>
<ul
class=
"nav nav-treeview"
>
<li
class=
"nav-item"
>
<a
href=
"./layout/unfixed-sidebar.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-circle"
></i>
<p>
Default Sidebar
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"./layout/fixed-sidebar.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-circle"
></i>
<p>
Fixed Sidebar
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"./layout/fixed-header.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-circle"
></i>
<p>
Fixed Header
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"./layout/fixed-footer.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-circle"
></i>
<p>
Fixed Footer
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"./layout/fixed-complete.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-circle"
></i>
<p>
Fixed Complete
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"./layout/layout-custom-area.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-circle"
></i>
<p>
Layout
<small>
+ Custom Area
</small></p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"./layout/sidebar-mini.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-circle"
></i>
<p>
Sidebar Mini
</p>
<a
href=
"./index.html"
class=
"nav-link active"
>
<i
class=
"nav-icon bi bi-arrow-right"
></i>
<p>
Create Event
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"./
layout/collapsed-sidebar
.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-
circle
"
></i>
<p>
Sidebar Mini
<small>
+ Collapsed
</small>
</p>
<a
href=
"./
index2
.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-
arrow-right
"
></i>
<p>
Manage Schedule
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"./
layout/logo-switch
.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-
circle
"
></i>
<p>
Sidebar Mini
<small>
+ Logo Switch
</small>
</p>
<a
href=
"./
index3
.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-
arrow-right
"
></i>
<p>
Manage Venue
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"./
layout/layout-rtl
.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-
circle
"
></i>
<p>
Layout RTL
</p>
<a
href=
"./
index3
.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-
arrow-right
"
></i>
<p>
Manage Participant
</p>
</a>
</li>
</ul>
</li>
<li
class=
"nav-item"
>
<a
href=
"#"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-
tree-fill
"
></i>
<li
class=
"nav-item
menu-open
"
>
<a
href=
"#"
class=
"nav-link
active
"
>
<i
class=
"nav-icon bi bi-
people
"
></i>
<p>
UI Elements
Team and Player Management
<i
class=
"nav-arrow bi bi-chevron-right"
></i>
</p>
</a>
<ul
class=
"nav nav-treeview"
>
<li
class=
"nav-item"
>
<a
href=
"./UI/general.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-circle"
></i>
<p>
General
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"./UI/icons.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-circle"
></i>
<p>
Icons
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"./UI/timeline.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-circle"
></i>
<p>
Timeline
</p>
<a
href=
"./index.html"
class=
"nav-link active"
>
<i
class=
"nav-icon bi bi-arrow-right"
></i>
<p>
Create Team
</p>
</a>
</li>
</ul>
</li>
<li
class=
"nav-item"
>
<a
href=
"#"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-pencil-square"
></i>
<p>
Forms
<i
class=
"nav-arrow bi bi-chevron-right"
></i>
</p>
</a>
<ul
class=
"nav nav-treeview"
>
<li
class=
"nav-item"
>
<a
href=
"./
forms/general
.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-
circle
"
></i>
<p>
General Element
s
</p>
<a
href=
"./
index2
.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-
arrow-right
"
></i>
<p>
Roster Update
s
</p>
</a>
</li>
</ul>
</li>
<li
class=
"nav-item"
>
<a
href=
"#"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-table"
></i>
<p>
Tables
<i
class=
"nav-arrow bi bi-chevron-right"
></i>
</p>
</a>
<ul
class=
"nav nav-treeview"
>
<li
class=
"nav-item"
>
<a
href=
"./
tables/simple
.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-
circle
"
></i>
<p>
Simple Tables
</p>
<a
href=
"./
index3
.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-
arrow-right
"
></i>
<p>
Manage Transfer
</p>
</a>
</li>
</ul>
</li>
<li
class=
"nav-header"
>
EXAMPLES
</li>
<li
class=
"nav-item"
>
<a
href=
"#"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-box-arrow-in-right"
></i>
<li
class=
"nav-item menu-open"
>
<a
href=
"#"
class=
"nav-link active"
>
<i
class=
"nav-icon bi bi-currency-rupee"
></i>
<p>
Auth
Financial and Fee Management
<i
class=
"nav-arrow bi bi-chevron-right"
></i>
</p>
</a>
<ul
class=
"nav nav-treeview"
>
<li
class=
"nav-item"
>
<a
href=
"#"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-box-arrow-in-right"
></i>
<p>
Version 1
<i
class=
"nav-arrow bi bi-chevron-right"
></i>
</p>
</a>
<ul
class=
"nav nav-treeview"
>
<li
class=
"nav-item"
>
<a
href=
"./examples/login.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-circle"
></i>
<p>
Login
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"./examples/register.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-circle"
></i>
<p>
Register
</p>
</a>
</li>
</ul>
</li>
<li
class=
"nav-item"
>
<a
href=
"#"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-box-arrow-in-right"
></i>
<p>
Version 2
<i
class=
"nav-arrow bi bi-chevron-right"
></i>
</p>
<a
href=
"./index.html"
class=
"nav-link active"
>
<i
class=
"nav-icon bi bi-arrow-right"
></i>
<p>
Fee Collection
</p>
</a>
<ul
class=
"nav nav-treeview"
>
<li
class=
"nav-item"
>
<a
href=
"./examples/login-v2.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-circle"
></i>
<p>
Login
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"./examples/register-v2.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-circle"
></i>
<p>
Register
</p>
</a>
</li>
</ul>
</li>
<li
class=
"nav-item"
>
<a
href=
"./
examples/lockscreen
.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-
circle
"
></i>
<p>
Lockscreen
</p>
<a
href=
"./
index2
.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-
arrow-right
"
></i>
<p>
Financial Reports
</p>
</a>
</li>
</ul>
</li>
<li
class=
"nav-header"
>
DOCUMENTATIONS
</li>
<li
class=
"nav-item"
>
<a
href=
"./docs/introduction.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-download"
></i>
<p>
Installation
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"./docs/layout.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-grip-horizontal"
></i>
<p>
Layout
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"./docs/color-mode.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-star-half"
></i>
<p>
Color Mode
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"#"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-ui-checks-grid"
></i>
<li
class=
"nav-item menu-open"
>
<a
href=
"#"
class=
"nav-link active"
>
<i
class=
"nav-icon bi bi-bar-chart"
></i>
<p>
Componen
ts
Analytics and Repor
ts
<i
class=
"nav-arrow bi bi-chevron-right"
></i>
</p>
</a>
<ul
class=
"nav nav-treeview"
>
<li
class=
"nav-item"
>
<a
href=
"./
docs/components/main-header.html"
class=
"nav-link
"
>
<i
class=
"nav-icon bi bi-
circle
"
></i>
<p>
Main Header
</p>
<a
href=
"./
index.html"
class=
"nav-link active
"
>
<i
class=
"nav-icon bi bi-
arrow-right
"
></i>
<p>
Track Performance
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"./
docs/components/main-sidebar
.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-
circle
"
></i>
<p>
Main Sidebar
</p>
<a
href=
"./
index2
.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-
arrow-right
"
></i>
<p>
Attendance Reports
</p>
</a>
</li>
</ul>
</li>
<li
class=
"nav-item"
>
<a
href=
"#"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-filetype-js"
></i>
<p>
Javascript
<i
class=
"nav-arrow bi bi-chevron-right"
></i>
</p>
</a>
<ul
class=
"nav nav-treeview"
>
<li
class=
"nav-item"
>
<a
href=
"./
docs/javascript/treeview
.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-
circle
"
></i>
<p>
Treeview
</p>
<a
href=
"./
index3
.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-
arrow-right
"
></i>
<p>
Custom Reports
</p>
</a>
</li>
</ul>
</li>
<li
class=
"nav-item"
>
<a
href=
"./docs/browser-support.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-browser-edge"
></i>
<p>
Browser Support
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"./docs/how-to-contribute.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-hand-thumbs-up-fill"
></i>
<p>
How To Contribute
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"./docs/faq.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-question-circle-fill"
></i>
<p>
FAQ
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"./docs/license.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-patch-check-fill"
></i>
<p>
License
</p>
</a>
</li>
<li
class=
"nav-header"
>
MULTI LEVEL EXAMPLE
</li>
<li
class=
"nav-item"
>
<a
href=
"#"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-circle-fill"
></i>
<p>
Level 1
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"#"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-circle-fill"
></i>
<li
class=
"nav-item menu-open"
>
<a
href=
"#"
class=
"nav-link active"
>
<i
class=
"nav-icon bi bi-file-earmark-text"
></i>
<p>
Level 1
Content Management
<i
class=
"nav-arrow bi bi-chevron-right"
></i>
</p>
</a>
<ul
class=
"nav nav-treeview"
>
<li
class=
"nav-item"
>
<a
href=
"
#"
class=
"nav-link
"
>
<i
class=
"nav-icon bi bi-
circle
"
></i>
<p>
Level 2
</p>
<a
href=
"
./index.html"
class=
"nav-link active
"
>
<i
class=
"nav-icon bi bi-
arrow-right
"
></i>
<p>
Announcements
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"#"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-circle"
></i>
<p>
Level 2
<i
class=
"nav-arrow bi bi-chevron-right"
></i>
</p>
<a
href=
"./index2.html"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-arrow-right"
></i>
<p>
Gallery Management
</p>
</a>
<ul
class=
"nav nav-treeview"
>
<li
class=
"nav-item"
>
<a
href=
"#"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-record-circle-fill"
></i>
<p>
Level 3
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"#"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-record-circle-fill"
></i>
<p>
Level 3
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"#"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-record-circle-fill"
></i>
<p>
Level 3
</p>
</a>
</li>
</ul>
</li>
<li
class=
"nav-item"
>
<a
href=
"
#
"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-
circle
"
></i>
<p>
Level 2
</p>
<a
href=
"
./index3.html
"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-
arrow-right
"
></i>
<p>
Notifications
</p>
</a>
</li>
</ul>
</li>
<li
class=
"nav-item"
>
<a
href=
"#"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-circle-fill"
></i>
<p>
Level 1
</p>
</a>
</li>
<li
class=
"nav-header"
>
LABELS
</li>
<li
class=
"nav-item"
>
<a
href=
"#"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-circle text-danger"
></i>
<p
class=
"text"
>
Important
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"#"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-circle text-warning"
></i>
<p>
Warning
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"#"
class=
"nav-link"
>
<i
class=
"nav-icon bi bi-circle text-info"
></i>
<p>
Informational
</p>
</a>
</li>
</ul>
<!--end::Sidebar Menu-->
</nav>
</div>
...
...
resources/views/login.blade.php
View file @
8fce89f1
...
...
@@ -10,18 +10,33 @@
<link
rel=
"stylesheet"
href=
"{{ asset('dashboard_assets/css/fontawesome-free/css/all.min.css') }}"
>
<link
rel=
"stylesheet"
href=
"{{ asset('dashboard_assets/css/adminlte.min.css') }}"
>
</head>
<style>
body
.login-page
{
background-image
:
url('{{ asset('dashboard_assets/image/bg-login.jpg')
}
}'
);
background-size
:
cover
;
background-position
:
center
;
background-repeat
:
no-repeat
;
}
.login-box
{
background-color
:
rgba
(
255
,
255
,
255
,
0.95
);
border-radius
:
10px
;
padding
:
20px
;
box-shadow
:
0
0
20px
rgba
(
0
,
0
,
0
,
0.2
);
}
</style>
<body
class=
"hold-transition login-page"
>
<div
class=
"login-box"
>
<div
class=
"card card-outline card-primary"
>
<div
class=
"card-header text-center"
>
<a
href=
"#"
class=
"h1"
><b>
Sports
</b>
Manager
</a>
<a
href=
"#"
class=
"h1"
><b>
Sports
</b>
Manager
</a>
</div>
<div
class=
"card-body"
>
<p
class=
"login-box-msg"
>
Sign in to start your session
</p>
<!-- FORM, but no action for now -->
<form
action=
"{{ route('login
.submit
') }}"
method=
"POST"
>
<form
action=
"{{ route('login') }}"
method=
"POST"
>
@csrf
<!-- Add name="email" -->
...
...
routes/web.php
View file @
8fce89f1
...
...
@@ -2,6 +2,7 @@
use
Illuminate\Support\Facades\Route
;
use
App\Http\Controllers\HomeController
;
use
App\Http\Controllers\UserManagementController
;
// Index route
Route
::
get
(
'/'
,
[
HomeController
::
class
,
'index'
])
->
name
(
'index'
);
...
...
@@ -18,9 +19,18 @@
// Dashboard route (protected)
// Route::get('/dashboard', [HomeController::class, 'dashboard'])->name('dashboard')->middleware('auth');
Route
::
get
(
'/dashboard'
,
[
HomeController
::
class
,
'dashboard'
])
->
middleware
(
'auth'
)
->
name
(
'dashboard'
);
Route
::
get
(
'dashboard'
,
[
HomeController
::
class
,
'dashboard'
])
->
middleware
(
'auth'
)
->
name
(
'dashboard'
);
// Logout route (optional)
Route
::
post
(
'/logout'
,
[
HomeController
::
class
,
'logout'
])
->
name
(
'logout'
);
//Users
Route
::
get
(
'/user-management/roles'
,
[
UserManagementController
::
class
,
'roleAccess'
])
->
name
(
'user.roles'
);
//Role
Route
::
post
(
'/user-management/assign-role'
,
[
UserManagementController
::
class
,
'assignRole'
])
->
name
(
'user.assignRole'
);
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