Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
simpkm
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Farendi Giotivano R.P
simpkm
Commits
5f3d8a31
Commit
5f3d8a31
authored
Feb 16, 2024
by
Novan Bagus Setiawan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update kelompok filter with tahun
parent
7b6e6291
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
app/Http/Controllers/Operator/KelompokController.php
+4
-1
resources/views/backend/operator/kelompok/index.blade.php
+1
-1
No files found.
app/Http/Controllers/Operator/KelompokController.php
View file @
5f3d8a31
...
@@ -31,6 +31,9 @@ class KelompokController extends Controller
...
@@ -31,6 +31,9 @@ class KelompokController extends Controller
$status
=
$request
->
get
(
'status'
);
$status
=
$request
->
get
(
'status'
);
$tahun
=
$request
->
get
(
'tahun'
);
$tahun
=
$request
->
get
(
'tahun'
);
if
(
$tahun
==
'0'
)
$tahun
=
date
(
'Y'
);
## Read value
## Read value
$draw
=
$request
->
get
(
'draw'
);
$draw
=
$request
->
get
(
'draw'
);
$start
=
$request
->
get
(
"start"
);
$start
=
$request
->
get
(
"start"
);
...
@@ -58,7 +61,7 @@ class KelompokController extends Controller
...
@@ -58,7 +61,7 @@ class KelompokController extends Controller
if
(
$tahun
!=
"0"
)
if
(
$tahun
!=
"0"
)
{
{
$statementGlobal
.=
" AND TO_CHAR(CREATED_AT, 'YYYY') = '"
.
$tahun
.
"'"
;
$statementGlobal
.=
" AND TO_CHAR(
KELOMPOK.
CREATED_AT, 'YYYY') = '"
.
$tahun
.
"'"
;
}
}
$totalRecords
=
Kelompok
::
select
(
'count(1) as allcount'
)
->
whereRaw
(
$statementGlobal
)
->
count
();
$totalRecords
=
Kelompok
::
select
(
'count(1) as allcount'
)
->
whereRaw
(
$statementGlobal
)
->
count
();
...
...
resources/views/backend/operator/kelompok/index.blade.php
View file @
5f3d8a31
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
<select class="
form
-
select
" name="
reqTahun
" id="
reqTahun
">
<select class="
form
-
select
" name="
reqTahun
" id="
reqTahun
">
<option value="
0
">Semua</option>
<option value="
0
">Semua</option>
@foreach (
$periode
as
$res
)
@foreach (
$periode
as
$res
)
<option value="
{{
$res
->
nama
}}
">{{
$res->nama
}}</option>
<option value="
{{
$res
->
nama
}}
"
@php if(
$res->nama
== date('Y')) echo 'selected'; @endphp
>{{
$res->nama
}}</option>
@endforeach
@endforeach
</select>
</select>
</div>
</div>
...
...
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