Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sibiling
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
Syaifur
sibiling
Commits
a780e73f
Commit
a780e73f
authored
Mar 13, 2025
by
Syaifur Rohman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add periode on dashboard
parent
cfd003e1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
DashboardController.php
app/Http/Controllers/Admin/DashboardController.php
+5
-1
index.blade.php
resources/views/admin/dashboard/index.blade.php
+1
-1
No files found.
app/Http/Controllers/Admin/DashboardController.php
View file @
a780e73f
...
@@ -5,6 +5,7 @@ use App\Http\Controllers\Controller;
...
@@ -5,6 +5,7 @@ use App\Http\Controllers\Controller;
use
Illuminate\Http\Request
;
use
Illuminate\Http\Request
;
use
PhpOffice\PhpWord\TemplateProcessor
;
use
PhpOffice\PhpWord\TemplateProcessor
;
use
App\Models\Master\PeriodeModel
;
class
DashboardController
extends
Controller
class
DashboardController
extends
Controller
{
{
...
@@ -15,14 +16,17 @@ class DashboardController extends Controller
...
@@ -15,14 +16,17 @@ class DashboardController extends Controller
public
function
__construct
()
public
function
__construct
()
{
{
createLogActivity
();
createLogActivity
();
// Di isi Construct
$this
->
mPeriode
=
new
PeriodeModel
();
}
}
public
function
index
()
public
function
index
()
{
{
$periode
=
$this
->
mPeriode
->
where
(
'id'
,
session
()
->
get
(
'idPPeriode'
))
->
first
();
$data
=
[
$data
=
[
'title'
=>
$this
->
title
,
'title'
=>
$this
->
title
,
'url'
=>
$this
->
url
,
'url'
=>
$this
->
url
,
'periode'
=>
$periode
,
];
];
return
view
(
$this
->
views
.
"/index"
,
$data
);
return
view
(
$this
->
views
.
"/index"
,
$data
);
}
}
...
...
resources/views/admin/dashboard/index.blade.php
View file @
a780e73f
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
<div class="
card
">
<div class="
card
">
<div class="
card
-
header
pb
-
0
">
<div class="
card
-
header
pb
-
0
">
<h1 class="
text
-
center
mb
-
5
">Statistik Absensi Siswa</h1>
<h1 class="
text
-
center
mb
-
5
">Statistik Absensi Siswa
Periode: {{
$periode->nama_periode
}}
</h1>
</div>
</div>
<div class="
card
-
body
">
<div class="
card
-
body
">
<div class="
row
">
<div class="
row
">
...
...
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