Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
3
3FOverdrive
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fezrul
3FOverdrive
Commits
c6869654
Commit
c6869654
authored
Mar 27, 2023
by
fezrul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update overdrive kpm
parent
c4523571
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
187 additions
and
8 deletions
+187
-8
overdrive/web/database/migrations/2022_10_05_000001_create_notification_user_table.php
+1
-0
overdrive/web/resources/views/backend/dashboard/index.blade.php
+62
-0
overdrive/web/resources/views/backend/layouts/kpm/base.blade.php
+42
-1
overdrive/web/resources/views/backend/layouts/kpm/menu.blade.php
+33
-1
overdrive/web/resources/views/backend/layouts/kpm/mobile-menu.blade.php
+35
-3
overdrive/web/routes/web.php
+4
-2
overdrive/web/src/Http/Controllers/Backend/MainController.php
+10
-1
No files found.
overdrive/web/database/migrations/2022_10_05_000001_create_notification_user_table.php
View file @
c6869654
...
...
@@ -19,6 +19,7 @@ class CreateNotificationUserTable extends Migration
$table
->
string
(
'url'
)
->
nullable
()
->
comment
=
'notification url'
;
$table
->
string
(
'content'
)
->
nullable
()
->
comment
=
'notification content'
;
$table
->
smallInteger
(
'status'
)
->
nullable
()
->
comment
=
'0-inactive, 1-active'
;
$table
->
smallInteger
(
'notify_role'
)
->
nullable
();
$table
->
timestamps
();
});
}
...
...
overdrive/web/resources/views/backend/dashboard/index.blade.php
View file @
c6869654
...
...
@@ -18,9 +18,70 @@
<div class="
col
-
lg
-
3
text
-
lg
-
end
">
<a href="
/
menu
/
index
" class="
btn
btn
-
default
">Menu</a>
</div>
<div class="
row
" style="
margin
-
top
:
20
px
">
<br>
<br>
<hr>
1 - Usage of notification :
<quote>
"
$notification
=
new
\App\Notifications\PortalNotification
(
fk_users
,
'content'
,
'url'
,
'role id sender'
);
"
</quote>
</div>
<div class="
row
" style="
margin
-
top
:
20
px
">
2 - Usage of cache :
<quote>
a)..<br>
b)..
</quote>
</div>
<div class="
row
" style="
margin
-
top
:
20
px
">
3 - Usage of audit trail :
<quote>
a)..<br>
b)..
</quote>
</div>
<div class="
row
" style="
margin
-
top
:
20
px
">
4 - Usage of balde template :
<quote>
@"
extends
(
'web::backend.layouts.kpm.base'
)
"
</quote>
</div>
<div class="
row
" style="
margin
-
top
:
20
px
">
<br>
<br>
<hr>
This Project Consist of 7 packages under /packages/workbench/ :
<quote>
1 - integration<br>
2 - pbkip<br>
3 - pbm<br>
4 - pbpbb<br>
5 - generator (surat/pdf/excel/email)<br>
6 - database (to manage one central models/relations)<br>
7 - lookups (to manage one central lookups crud)<br>
</quote>
</div>
</div>
</div>
</div>
</div>
@endsection
\ No newline at end of file
overdrive/web/resources/views/backend/layouts/kpm/base.blade.php
View file @
c6869654
...
...
@@ -20,10 +20,39 @@
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{{asset('overide/web/themes/apim/default/vendors/data-tables/css/jquery.dataTables.css')}}"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{{asset('overide/web/themes/apim/default/vendors/sweetalert/sweetalert.css')}}"
>
<style
type=
"text/css"
>
.swal-title
{
color
:
rgba
(
0
,
0
,
0
,
.65
);
font-weight
:
600
;
text-transform
:
none
;
position
:
relative
;
display
:
block
;
padding
:
13px
16px
;
font-size
:
18px
;
line-height
:
normal
;
text-align
:
center
;
margin-bottom
:
0
}
,
.btnadd
{
background-color
:
#50ca67
;
}
,
.tdbreak
{
word-break
:
break-all
}
.wrap-me
{
word-break
:
break-all
!important
;
}
</style>
</head>
@stack('style')
...
...
@@ -67,7 +96,6 @@
<div
class=
"col-12"
>
Copyright ©2022
<a
href=
"#"
><strong>
KPM
</strong></a>
. All Rights Reserved
</div>
</div>
</div>
</div>
...
...
@@ -97,6 +125,19 @@
<script
src=
"{{asset('overide/web/themes/apim/default/vendors/data-tables/extensions/responsive/js/dataTables.responsive.min.js')}}"
></script>
<script
src=
"{{asset('overide/web/themes/apim/default/vendors/data-tables/js/dataTables.select.min.js')}}"
></script>
<script
src=
"{{asset('overide/web/themes/apim/default/js/scripts/data-tables.js')}}"
></script>
<script
src=
"{{asset('overide/web/themes/apim/default/vendors/sweetalert/sweetalert.min.js')}}"
></script>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
document
.
getElementById
(
'notis'
).
innerHTML
=
"{{$counts}}"
;
});
</script>
@include('web::backend.layouts.message')
@stack('script')
...
...
overdrive/web/resources/views/backend/layouts/kpm/menu.blade.php
View file @
c6869654
...
...
@@ -29,7 +29,7 @@ if (Session::has('locale')) {
<span
class=
"sidebar-company"
style=
"font-size:12px"
>
{{auth()->user()->name}}
</span>
<span
class=
"sidebar-website-text"
style=
"font-size:11px"
>
{{auth()->user()->roles->implode('name', ', ')}}
</span>
<div
class=
"dropdowm"
>
<button
class=
"btn btn-dots btn-dots-abs-right dropdown-toggle"
type=
"button"
data-bs-toggle=
"dropdown"
aria-expanded=
"false"
>
@if(count($notisall) > 0)
<span
class=
"badge rounded-pill badge-notification bg-danger spinner-grow"
>
{{count($notisall)}}
</span>
@else
<span
class=
"badge rounded-pill badge-notification bg-warning"
>
{{count($notisall)}}
</span>
@endif
</button>
<button
class=
"btn btn-dots btn-dots-abs-right dropdown-toggle"
type=
"button"
data-bs-toggle=
"dropdown"
aria-expanded=
"false"
>
@if(count($notisall) > 0)
<span
id=
"notis"
class=
"badge rounded-pill badge-notification bg-danger spinner-grow"
>
{{count($notisall)}}
</span>
@else
<span
id=
"notis"
class=
"badge rounded-pill badge-notification bg-warning"
>
{{count($notisall)}}
</span>
@endif
</button>
<ul
class=
"dropdown-menu dropdown-menu-light"
>
<li
><a
class=
"dropdown-item"
href=
"/auth/logout"
style=
"font-size:12px !important;"
>
Logout
</a></li>
<div
class=
"row p-2"
>
...
...
@@ -270,3 +270,34 @@ if (Session::has('locale')) {
</div>
</div>
@push('script')
<script
type=
"text/javascript"
>
function
updatenotis
(
id
)
{
//update notis
var
ids
=
id
;
$
.
ajax
({
url
:
"{{ URL::to('/backend/notisread/')}}"
+
"/"
+
ids
,
type
:
"get"
,
beforeSend
:
function
()
{
},
success
:
function
(
url
)
{
window
.
location
.
replace
(
url
);
}
});
// alert('clicked');
}
</script>
@endpush
\ No newline at end of file
overdrive/web/resources/views/backend/layouts/kpm/mobile-menu.blade.php
View file @
c6869654
...
...
@@ -36,7 +36,7 @@ if (Session::has('locale')) {
<span
class=
"sidebar-company"
style=
"font-size:12px"
>
{{auth()->user()->name}}
</span>
<span
class=
"sidebar-website-text"
style=
"font-size:11px"
>
{{auth()->user()->roles->implode('name', ', ')}}
</span>
<div
class=
"dropdowm"
>
<button
class=
"btn btn-dots btn-dots-abs-right dropdown-toggle"
type=
"button"
data-bs-toggle=
"dropdown"
aria-expanded=
"false"
>
@if(count($notisall) > 0)
<span
class=
"badge rounded-pill badge-notification bg-danger spinner-grow"
>
{{count($notisall)}}
</span>
@else
<span
class=
"badge rounded-pill badge-notification bg-warning"
>
{{count($notisall)}}
</span>
@endif
</button>
<button
class=
"btn btn-dots btn-dots-abs-right dropdown-toggle"
type=
"button"
data-bs-toggle=
"dropdown"
aria-expanded=
"false"
>
@if(count($notisall) > 0)
<span
id=
"notis"
class=
"badge rounded-pill badge-notification bg-danger spinner-grow"
>
{{count($notisall)}}
</span>
@else
<span
id=
"notis"
class=
"badge rounded-pill badge-notification bg-warning"
>
{{count($notisall)}}
</span>
@endif
</button>
<ul
class=
"dropdown-menu dropdown-menu-light"
>
<li
><a
class=
"dropdown-item"
href=
"/auth/logout"
style=
"font-size:12px !important;"
>
Logout
</a></li>
<div
class=
"row p-2"
>
...
...
@@ -274,4 +274,36 @@ if (Session::has('locale')) {
</div>
</div>
</div>
</div>
\ No newline at end of file
</div>
@push('script')
<script
type=
"text/javascript"
>
function
updatenotis
(
id
)
{
//update notis
var
ids
=
id
;
$
.
ajax
({
url
:
"{{ URL::to('/backend/notisread/')}}"
+
"/"
+
ids
,
type
:
"get"
,
beforeSend
:
function
()
{
},
success
:
function
(
url
)
{
window
.
location
.
replace
(
url
);
}
});
// alert('clicked');
}
</script>
@endpush
\ No newline at end of file
overdrive/web/routes/web.php
View file @
c6869654
<?php
use
Overdrive\Web\Http\Controllers\Backend\MainController
;
Route
::
group
(
[
'namespace'
=>
'\Overdrive\Web\Http\Controllers\Frontend'
,
...
...
@@ -24,8 +26,8 @@ Route::group(
],
function
()
{
Route
::
get
(
'/home'
,
'MainController@index'
)
->
name
(
'backend.index'
);
Route
::
get
(
'
backend/notisread
'
,
'MainController@readNotification'
)
->
name
(
'backend.notisread'
);
//
Route::get('/home', 'MainController@index')->name('backend.index');
Route
::
get
(
'
/backend/notisread/{id}
'
,
'MainController@readNotification'
)
->
name
(
'backend.notisread'
);
}
);
...
...
overdrive/web/src/Http/Controllers/Backend/MainController.php
View file @
c6869654
...
...
@@ -7,6 +7,7 @@ use Illuminate\Http\Request;
use
Illuminate\Routing\Controller
as
BaseController
;
Use
Illuminate\Support\Facades\Event
;
use
App\Events\MenuCache
;
use
App\Models\NotificationTable
;
class
MainController
extends
BaseController
{
...
...
@@ -19,6 +20,14 @@ class MainController extends BaseController
public
function
readNotification
(
$id
)
{
return
view
(
'web::frontend.index'
);
$notisall
=
NotificationTable
::
where
(
'id'
,
'='
,
$id
)
->
first
();
$notisall
->
status
=
1
;
$notisall
->
update
();
$url
=
$notisall
->
url
;
return
$url
;
}
}
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