Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mileage-claim
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
trainee
mileage-claim
Commits
b1d39436
Commit
b1d39436
authored
Apr 28, 2026
by
afif
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
list overtime
parent
a1af4395
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
76 additions
and
9 deletions
+76
-9
database/migrations/seperate/2026_04_06_081759_create_overtime_main_table.php
+39
-0
packages/portal/overtime/resources/views/list.blade.php
+1
-1
packages/portal/overtime/routes/web.php
+3
-0
packages/portal/overtime/src/Data/Repo/OvertimeRepo.php
+17
-2
packages/portal/overtime/src/Http/Controllers/OvertimeController.php
+15
-5
packages/portal/overtime/src/ServiceProvider.php
+1
-1
No files found.
database/migrations/seperate/2026_04_06_081759_create_overtime_main_table.php
0 → 100644
View file @
b1d39436
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
return
new
class
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'overtime_main'
,
function
(
Blueprint
$table
)
{
$table
->
engine
=
'InnoDB'
;
$table
->
increments
(
'id'
);
$table
->
string
(
'om_apply_no'
)
->
nullable
();
$table
->
timestamps
();
$table
->
integer
(
'updated_by'
)
->
nullable
();
$table
->
softDeletes
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'overtime_main'
);
}
};
packages/portal/overtime/resources/views/list.blade.php
View file @
b1d39436
...
...
@@ -25,7 +25,7 @@
['header' => __('Nama'), 'field' => 'name', 'sortable' => true],
['header' => __('Tarikh Hari ini'), 'raw' => function(
$list
){return date("
d
-
m
-
Y
");}, 'sortable' => true],
['header' => __('Terperinci'), 'raw' => function(
$list
){
return "
<
div
class
='
ui
small
basic
icon
buttons
'><a href='
/
application
s
/
".
$list->id
."
' class='
ui
button
'><i class='
file
icon
'
></
i
></
a
></
div
>
";
return "
<
div
class
='
ui
small
basic
icon
buttons
'><a href='
/
application
/
".
$list->id
."
' class='
ui
button
'><i class='
file
icon
'
></
i
></
a
></
div
>
";
}]
])
...
...
packages/portal/overtime/routes/web.php
View file @
b1d39436
...
...
@@ -15,5 +15,7 @@
function
()
{
Route
::
get
(
'index'
,
[
'uses'
=>
'OvertimeController@index'
,
'as'
=>
'overtime.index'
]);
Route
::
get
(
'list'
,
[
'uses'
=>
'OvertimeController@getListOvertime'
,
'as'
=>
'overtime.listovertime'
]);
}
);
\ No newline at end of file
packages/portal/overtime/src/Data/Repo/OvertimeRepo.php
View file @
b1d39436
...
...
@@ -33,9 +33,23 @@ class OvertimeRepo
{
public
function
index
(
$request
)
{
$users
=
Users
::
where
(
'status'
,
'ACTIVE'
)
// $users = Users::where('status', 'ACTIVE')
// ->paginate(10);
// return $users;
}
// overtime crud start
public
function
overtimeList
(
$request
)
{
$search
=
request
(
'search'
);
$data
=
MainOvertime
::
where
(
'om_apply_no'
,
'like'
,
'%'
.
$search
.
'%'
)
->
orderBy
(
'created_at'
,
'desc'
)
->
paginate
(
10
);
return
$
users
;
return
$
data
;
}
// overtime crud end
}
\ No newline at end of file
packages/portal/overtime/src/Http/Controllers/OvertimeController.php
View file @
b1d39436
...
...
@@ -7,8 +7,6 @@
use
Illuminate\Support\Facades\Input
;
use
Carbon\Carbon
;
use
Portal\Overtime\Data\Repo\OvertimeRepo
;
use
Auth
;
use
DB
;
use
Event
;
...
...
@@ -18,6 +16,8 @@
use
Redirect
;
use
Curl
;
use
Portal\Overtime\Data\Repo\OvertimeRepo
;
class
OvertimeController
extends
Controller
{
public
function
__construct
(
OvertimeRepo
$repos
)
...
...
@@ -33,10 +33,19 @@ public function __construct(OvertimeRepo $repos)
**/
public
function
index
(
Request
$request
)
{
// dd('sini controller');exit;
dd
(
'Welcome to index E-OT 3FRSB'
);
exit
;
// $list = $this->repos->index($request);
$list
=
$this
->
repos
->
index
(
$request
);
// return view('overtime::list', compact('list'));
}
// overtime crud start
public
function
getListOvertime
(
Request
$request
)
{
$list
=
$this
->
repos
->
overtimeList
(
$request
);
return
view
(
'overtime::list'
,
compact
(
'list'
));
return
view
(
'overtime::
overtime.
list'
,
compact
(
'list'
));
}
// overtime crud end
}
\ No newline at end of file
packages/portal/overtime/src/ServiceProvider.php
View file @
b1d39436
...
...
@@ -81,7 +81,7 @@ protected function menu()
app
(
'laravolt.menu.sidebar'
)
->
register
(
function
(
\Lavary\Menu\Builder
$menus
)
{
$menu
=
$menus
->
add
(
__
(
'Tuntutan Lebih Masa'
))
->
data
(
'icon'
,
'align justify'
);
$menu
->
add
(
__
(
'Senarai Permohonan '
),
url
(
'/overtime/
index
'
))
$menu
->
add
(
__
(
'Senarai Permohonan '
),
url
(
'/overtime/
list
'
))
->
data
(
'icon'
,
'home'
)
->
active
(
'overtime/*'
);
// ->data('permission', Permission::PROJECT_MANAGER);
...
...
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