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
a1423c92
Commit
a1423c92
authored
Sep 21, 2026
by
Muhammad Aniq bin Mohd Nizam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tetapan update
parent
7724ee6e
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
430 additions
and
524 deletions
+430
-524
packages/portal/mileage/resources/views/jeniskenderaan/create.blade.php
+46
-12
packages/portal/mileage/resources/views/jeniskenderaan/index.blade.php
+68
-29
packages/portal/mileage/resources/views/lkpdepartment/create.blade.php
+0
-57
packages/portal/mileage/resources/views/lkpdepartment/edit.blade.php
+0
-58
packages/portal/mileage/resources/views/lkpdepartment/index.blade.php
+0
-72
packages/portal/mileage/resources/views/lkpdepartment/show.blade.php
+0
-50
packages/portal/mileage/resources/views/lkpfacategory/index.blade.php
+71
-28
packages/portal/mileage/resources/views/lkpmileagetask/index.blade.php
+76
-29
packages/portal/mileage/resources/views/lkprate/index.blade.php
+75
-32
packages/portal/mileage/resources/views/lkpstatus/index.blade.php
+7
-2
packages/portal/mileage/resources/views/tetapan/index.blade.php
+0
-12
packages/portal/mileage/routes/web.php
+0
-8
packages/portal/mileage/src/Http/Controllers/DepartmentController.php
+0
-102
packages/portal/overtime/resources/views/lkpotask/index.blade.php
+79
-30
packages/portal/overtime/resources/views/lkpstatus/index.blade.php
+8
-3
No files found.
packages/portal/mileage/resources/views/jeniskenderaan/create.blade.php
View file @
a1423c92
@
extends
(
'ui::layouts.app'
)
@
section
(
'content'
)
<
div
class
="
ui
segments
">
<div class="
ui
segment
">
<p>Tambah Jenis Kenderaan Baru</p>
<
div
class
="
ui
container
" style="
width
:
100
%
;
">
<!-- Outer Segment Card -->
<div class="
ui
segment
" style="
border
-
radius
:
8
px
;
padding
:
25
px
;
background
:
#fff; box-shadow: 0 1px 3px rgba(0,0,0,0.1);">
<!--
Teal
Ribbon
Label
-->
<
div
class
="
ui
teal
ribbon
label
" style="
font
-
size
:
1
rem
;
padding
:
8
px
16
px
;
margin
-
bottom
:
20
px
;
">
Tetapan Jenis Kenderaan
</div>
<!-- Header Row with Title and Back Button -->
<div style="
display
:
flex
;
justify
-
content
:
space
-
between
;
align
-
items
:
center
;
margin
-
bottom
:
25
px
;
">
<h1 class="
ui
header
" style="
margin
:
0
;
font
-
size
:
2
rem
;
font
-
weight
:
700
;
color
:
#222;">
Tambah
Jenis
Kenderaan
Baharu
</
h1
>
<
a
href
=
"{{ route('mileage::jenis-kenderaan.index') }}"
class
="
ui
button
" style="
border
-
radius
:
4
px
;
padding
:
10
px
20
px
;
">
<i class="
arrow
left
icon
"></i> Kembali
</a>
</div>
@if (
$errors->any
())
<div class="
ui
negative
message
">
<i class="
close
icon
"></i>
<div class="
header
">Ralat Borang</div>
<ul class="
list
">
@foreach (
$errors->all
() as
$error
)
<li>{{
$error
== 'validation.unique' ? 'Nama kenderaan ini telah wujud.' :
$error
}}</li>
@endforeach
</ul>
</div>
@endif
<
div class="
ui
secondary
segment
"
>
<div class="
ui
segment
">
<
!-- Form Container --
>
<div style="
border
:
1
px
solid
#e0e0e0; border-radius: 6px; padding: 25px; background: #fafafa;
">
<
form
action
=
"{{ route('mileage::jenis-kenderaan.store') }}"
method
=
"POST"
class
="
ui
form
">
@csrf
<div class="
field
@
error
(
'name'
)
error
@
enderror
">
<label
>Nama Kenderaan <span style="
color
:
red
;
">*</span></label>
<input type="
text
" name="
name
" value="
{{
old
(
'name'
)
}}
" placeholder="
Contoh
:
Kereta
,
Motosikal
" required
>
<label style="
font
-
weight
:
600
;
color
:
#333;"
>Nama Kenderaan <span style="color:red;">*</span></label>
<
input
type
=
"text"
name
=
"name"
value
=
"{{ old('name') }}"
placeholder
=
"Contoh: Kereta, Motosikal"
required
style
=
"border-radius: 4px;"
>
@
error
(
'name'
)
<div class="
ui
basic
red
pointing
prompt
label
">{{
$message
}}</div>
<
div
class
="
ui
basic
red
pointing
prompt
label
">
{{
$message
== 'validation.unique' ? 'Nama kenderaan ini telah wujud.' :
$message
}}
</div>
@enderror
</div>
<div style="
margin
-
top
:
20
px
;
">
<button type="
submit
" class="
ui
button
primary
"><i class="
save
icon
"></i> Simpan</button>
<a href="
{{
route
(
'mileage::jenis-kenderaan.index'
)
}}
" class="
ui
button
basic
">Batal</a>
<div style="
margin
-
top
:
25
px
;
display
:
flex
;
gap
:
10
px
;
">
<button type="
submit
" class="
ui
primary
button
" style="
border
-
radius
:
4
px
;
padding
:
10
px
20
px
;
font
-
weight
:
600
;
">
<i class="
save
icon
"></i> Simpan
</button>
<a href="
{{
route
(
'mileage::jenis-kenderaan.index'
)
}}
" class="
ui
button
basic
" style="
border
-
radius
:
4
px
;
padding
:
10
px
20
px
;
">
Batal
</a>
</div>
</form>
</div>
</div>
</div>
</div>
@endsection
\ No newline at end of file
packages/portal/mileage/resources/views/jeniskenderaan/index.blade.php
View file @
a1423c92
@
extends
(
'ui::layouts.app'
)
@
section
(
'content'
)
<
div
class
="
ui
container
" style="
width
:
100
%
;
">
<!-- Outer Segment Card -->
<div class="
ui
segment
" style="
border
-
radius
:
8
px
;
padding
:
25
px
;
background
:
#fff; box-shadow: 0 1px 3px rgba(0,0,0,0.1);">
<!--
Teal
Ribbon
Label
-->
<
div
class
="
ui
teal
ribbon
label
" style="
font
-
size
:
1
rem
;
padding
:
8
px
16
px
;
margin
-
bottom
:
20
px
;
">
Tetapan Jenis Kenderaan
</div>
<!-- Header Row with Title and Buttons -->
<div style="
display
:
flex
;
justify
-
content
:
space
-
between
;
align
-
items
:
center
;
margin
-
bottom
:
25
px
;
">
<h1 class="
ui
header
" style="
margin
:
0
;
font
-
size
:
2
rem
;
font
-
weight
:
700
;
color
:
#222;">
Senarai
Jenis
Kenderaan
</
h1
>
<
div
>
<
a
href
=
"{{ route('mileage::mileage.tetapan') }}"
class
="
ui
button
" style="
border
-
radius
:
4
px
;
padding
:
10
px
20
px
;
margin
-
right
:
8
px
;
">
<i class="
arrow
left
icon
"></i> Kembali
</a>
<a href="
{{
route
(
'mileage::jenis-kenderaan.create'
)
}}
" class="
ui
primary
button
" style="
border
-
radius
:
4
px
;
padding
:
10
px
20
px
;
">
<i class="
plus
icon
"></i> Tambah Jenis Kenderaan
</a>
</div>
</div>
@if(session('success'))
<div class="
ui
positive
message
">
<i class="
close
icon
"></i>
...
...
@@ -17,57 +41,71 @@
</div>
@endif
<div class="
ui
segments
">
<div class="
ui
segment
">
<p>Tetapan Jenis Kenderaan</p>
</div>
<!-- Inner Box with Header Bar and Table -->
<div style="
border
:
1
px
solid
#e0e0e0; border-radius: 6px; overflow: hidden;">
<div class="
ui
secondary
segment
">
<div class="
ui
segment
">
<div style="
display
:
flex
;
justify
-
content
:
space
-
between
;
align
-
items
:
center
;
margin
-
bottom
:
20
px
;
">
<p style="
font
-
weight
:
bold
;
margin
:
0
;
">Senarai Jenis Kenderaan</p>
<a href="
{{
route
(
'mileage::jenis-kenderaan.create'
)
}}
" class="
ui
button
primary
small
">
+ Tambah Jenis Kenderaan
</a>
<!--
Table
Header
Bar
with
Search
-->
<
div
style
=
"display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background-color: #fff; border-bottom: 1px solid #eee;"
>
<
h3
class
="
ui
header
" style="
margin
:
0
;
font
-
size
:
1.1
rem
;
color
:
#333; font-weight: 600;">
Senarai
Jenis
Kenderaan
</
h3
>
<
div
class
="
ui
icon
input
" style="
width
:
220
px
;
">
<input type="
text
" placeholder="
Search
...
" style="
border
-
radius
:
4
px
;
border
:
1
px
solid
#ddd; padding: 6px 12px;">
<
i
class
="
search
icon
"></i>
</div>
</div>
<table class="
ui
table
celled
" id="
jenis
-
kenderaan
-
table
" style="
width
:
100
%
;
">
<!-- Main Data Table -->
<table class="
ui
single
line
table
" id="
jenis
-
kenderaan
-
table
" style="
border
:
none
;
margin
:
0
;
">
<thead>
<tr>
<th width="
80
px
">ID</th>
<th>Nama Kenderaan</th>
<th>Bil. Kadar (Rates)</th>
<th>Bil. Tuntutan (Claims)</th>
<th width="
150
px
">Tindakan</th>
<tr style="
background
-
color
:
#f9fafb; color: #666; font-size: 0.85rem; text-transform: uppercase;">
<
th
style
=
"width: 10%; padding-left: 20px;"
>
ID
</
th
>
<
th
>
NAMA
KENDERAAN
</
th
>
<
th
class
="
center
aligned
" style="
width
:
25
%
;
">TINDAKAN</th>
</tr>
</thead>
<tbody>
@forelse(
$jenisKenderaan
as
$item
)
<tr>
<td>{{
$item->id
}}</td>
<td>{{
$item->name
}}</td>
<td><span class="
ui
label
tiny
">{{
$item->rates_count
}}</span></td>
<td><span class="
ui
label
tiny
">{{
$item->claims_count
}}</span></td>
<td>
<div class="
ui
small
icon
buttons
">
<a href="
{{
route
(
'mileage::jenis-kenderaan.show'
,
$item
->
id
)
}}
" class="
ui
button
basic
" title="
Lihat
"><i class="
eye
icon
"></i></a>
<a href="
{{
route
(
'mileage::jenis-kenderaan.edit'
,
$item
->
id
)
}}
" class="
ui
button
primary
" title="
Kemaskini
"><i class="
edit
icon
"></i></a>
<td style="
padding
-
left
:
20
px
;
color
:
#666;">{{ $item->id }}</td>
<
td
style
=
"font-weight: 600; color: #333;"
>
{{
$item
->
name
}}
</
td
>
<
td
class
="
center
aligned
">
<a href="
{{
route
(
'mileage::jenis-kenderaan.show'
,
$item
->
id
)
}}
" class="
ui
primary
button
compact
" style="
border
-
radius
:
4
px
;
padding
:
8
px
16
px
;
font
-
weight
:
600
;
">
<i class="
eye
icon
"></i> Lihat
</a>
<a href="
{{
route
(
'mileage::jenis-kenderaan.edit'
,
$item
->
id
)
}}
" class="
ui
warning
button
compact
" style="
border
-
radius
:
4
px
;
padding
:
8
px
16
px
;
font
-
weight
:
600
;
background
-
color
:
#f0ad4e; color: #fff;">
<
i
class
="
edit
icon
"></i> Kemaskini
</a>
<form action="
{{
route
(
'mileage::jenis-kenderaan.destroy'
,
$item
->
id
)
}}
" method="
POST
" style="
display
:
inline
;
" onsubmit="
return
confirm
(
'Adakah anda pasti untuk memadam rekod ini?'
);
">
@csrf
@method('DELETE')
<button type="
submit
" class="
ui
button
red
" title="
Padam
"><i class="
trash
icon
"></i></button>
<button type="
submit
" class="
ui
red
button
compact
" style="
border
-
radius
:
4
px
;
padding
:
8
px
16
px
;
font
-
weight
:
600
;
">
<i class="
trash
icon
"></i> Padam
</button>
</form>
</div>
</td>
</tr>
@empty
<tr>
<td colspan="
5
" class="
center
aligned
">Tiada rekod jenis kenderaan.</td>
<td colspan="
3
" class="
center
aligned
" style="
padding
:
30
px
;
color
:
#888;
">Tiada rekod jenis kenderaan.</td>
</
tr
>
@
endforelse
</
tbody
>
</
table
>
<!--
Table
Footer
Pagination
Bar
-->
<
div
style
=
"display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background-color: #fff; border-top: 1px solid #eee; font-size: 0.9rem; color: #666;"
>
<
div
>
Showing
1
-
{{
count
(
$jenisKenderaan
)
}}
from
{{
count
(
$jenisKenderaan
)
}}
</
div
>
<
div
class
="
ui
pagination
menu
mini
" style="
margin
:
0
;
box
-
shadow
:
none
;
border
:
1
px
solid
#e0e0e0;">
<
a
class
="
item
disabled
"><i class="
chevron
left
icon
"></i></a>
<a class="
active
item
">1</a>
<a class="
item
disabled
"><i class="
chevron
right
icon
"></i></a>
</div>
</div>
</div>
</div>
</div>
@endsection
\ No newline at end of file
packages/portal/mileage/resources/views/lkpdepartment/create.blade.php
deleted
100644 → 0
View file @
7724ee6e
@
extends
(
'ui::layouts.app'
)
@
section
(
'content'
)
<
div
class
="
ui
segments
">
<div class="
ui
segment
">
<p style="
font
-
weight
:
bold
;
margin
:
0
;
">Tambah Jabatan Baru</p>
</div>
<div class="
ui
secondary
segment
">
<div class="
ui
segment
">
<form action="
{{
route
(
'mileage::department.store'
)
}}
" method="
POST
" class="
ui
form
@
if
(
$errors
->
any
())
error
@
endif
">
@csrf
@if (
$errors->any
())
<div class="
ui
error
message
">
<i class="
close
icon
"></i>
<div class="
header
">Ralat Input</div>
<ul class="
list
">
@foreach (
$errors->all
() as
$error
)
<li>{{
$error
}}</li>
@endforeach
</ul>
</div>
@endif
<div class="
field
required
@
error
(
'code'
)
error
@
enderror
">
<label>Kod Jabatan</label>
<input type="
text
" name="
code
" value="
{{
old
(
'code'
)
}}
" placeholder="
Contoh
:
FIN
,
TMS
,
PSS
" required>
</div>
<div class="
field
required
@
error
(
'description'
)
error
@
enderror
">
<label>Deskripsi</label>
<input type="
text
" name="
description
" value="
{{
old
(
'description'
)
}}
" placeholder="
Contoh
:
Professional
&
Software
Services
" required>
</div>
<div class="
field
required
@
error
(
'status'
)
error
@
enderror
">
<label>Status</label>
<select class="
ui
dropdown
" name="
status
" required>
<option value="
1
" {{ old('status', '1') == '1' ? 'selected' : '' }}>Aktif</option>
<option value="
0
" {{ old('status') === '0' ? 'selected' : '' }}>Tidak Aktif</option>
</select>
</div>
<div style="
margin
-
top
:
20
px
;
">
<button type="
submit
" class="
ui
button
primary
">
<i class="
save
icon
"></i> Simpan
</button>
<a href="
{{
route
(
'mileage::department.index'
)
}}
" class="
ui
button
basic
">
Batal
</a>
</div>
</form>
</div>
</div>
</div>
@endsection
\ No newline at end of file
packages/portal/mileage/resources/views/lkpdepartment/edit.blade.php
deleted
100644 → 0
View file @
7724ee6e
@
extends
(
'ui::layouts.app'
)
@
section
(
'content'
)
<
div
class
="
ui
segments
">
<div class="
ui
segment
">
<p style="
font
-
weight
:
bold
;
margin
:
0
;
">Kemaskini Jabatan: {{
$department->code
}}</p>
</div>
<div class="
ui
secondary
segment
">
<div class="
ui
segment
">
<form action="
{{
route
(
'mileage::department.update'
,
$department
->
id
)
}}
" method="
POST
" class="
ui
form
@
if
(
$errors
->
any
())
error
@
endif
">
@csrf
@method('PUT')
@if (
$errors->any
())
<div class="
ui
error
message
">
<i class="
close
icon
"></i>
<div class="
header
">Ralat Input</div>
<ul class="
list
">
@foreach (
$errors->all
() as
$error
)
<li>{{
$error
}}</li>
@endforeach
</ul>
</div>
@endif
<div class="
field
required
@
error
(
'code'
)
error
@
enderror
">
<label>Kod Jabatan</label>
<input type="
text
" name="
code
" value="
{{
old
(
'code'
,
$department
->
code
)
}}
" required>
</div>
<div class="
field
required
@
error
(
'description'
)
error
@
enderror
">
<label>Keterangan / Deskripsi</label>
<input type="
text
" name="
description
" value="
{{
old
(
'description'
,
$department
->
description
)
}}
" required>
</div>
<div class="
field
required
@
error
(
'status'
)
error
@
enderror
">
<label>Status</label>
<select class="
ui
dropdown
" name="
status
" required>
<option value="
1
" {{ old('status',
$department->status
) == 1 ? 'selected' : '' }}>Aktif</option>
<option value="
0
" {{ old('status',
$department->status
) == 0 && old('status',
$department->status
) !== null ? 'selected' : '' }}>Tidak Aktif</option>
</select>
</div>
<div style="
margin
-
top
:
20
px
;
">
<button type="
submit
" class="
ui
button
primary
">
<i class="
save
icon
"></i> Kemaskini
</button>
<a href="
{{
route
(
'mileage::department.index'
)
}}
" class="
ui
button
basic
">
Batal
</a>
</div>
</form>
</div>
</div>
</div>
@endsection
\ No newline at end of file
packages/portal/mileage/resources/views/lkpdepartment/index.blade.php
deleted
100644 → 0
View file @
7724ee6e
@
extends
(
'ui::layouts.app'
)
@
section
(
'content'
)
@
if
(
session
(
'success'
))
<
div
class
="
ui
positive
message
">
<i class="
close
icon
"></i>
<div class="
header
">Kejayaan</div>
<p>{{ session('success') }}</p>
</div>
@endif
<div class="
ui
segments
">
{{-- Header Card --}}
<div class="
ui
segment
">
<p>Senarai Jabatan</p>
</div>
{{-- Body Container --}}
<div class="
ui
secondary
segment
">
<div class="
ui
segment
">
<div style="
display
:
flex
;
justify
-
content
:
space
-
between
;
align
-
items
:
center
;
margin
-
bottom
:
20
px
;
">
<p style="
font
-
weight
:
bold
;
margin
:
0
;
">Senarai Jabatan (LKP Department)</p>
<a href="
{{
route
(
'mileage::department.create'
)
}}
" class="
ui
button
primary
small
">
+ Tambah Jabatan
</a>
</div>
<table class="
ui
table
celled
" id="
department
-
table
" style="
width
:
100
%
;
">
<thead>
<tr>
<th>Kod</th>
<th>Keterangan</th>
<th>Status</th>
<th width="
150
px
">Tindakan</th>
</tr>
</thead>
<tbody>
@forelse(
$departments
as
$dept
)
<tr>
<td>{{
$dept->code
}}</td>
<td>{{
$dept->description
}}</td>
<td>
@if(
$dept->status
== '1' ||
$dept->status
=== 'Aktif')
<span class="
ui
green
label
small
">Aktif</span>
@else
<span class="
ui
red
label
small
">Tidak Aktif</span>
@endif
</td>
<td>
<div class="
ui
small
icon
buttons
">
<a href="
{{
route
(
'mileage::department.show'
,
$dept
->
id
)
}}
" class="
ui
button
basic
" title="
Lihat
"><i class="
eye
icon
"></i></a>
<a href="
{{
route
(
'mileage::department.edit'
,
$dept
->
id
)
}}
" class="
ui
button
primary
" title="
Kemaskini
"><i class="
edit
icon
"></i></a>
<form action="
{{
route
(
'mileage::department.destroy'
,
$dept
->
id
)
}}
" method="
POST
" style="
display
:
inline
;
" onsubmit="
return
confirm
(
'Adakah anda pasti untuk memadam Jabatan ini?'
);
">
@csrf
@method('DELETE')
<button type="
submit
" class="
ui
button
red
" title="
Padam
"><i class="
trash
icon
"></i></button>
</form>
</div>
</td>
</tr>
@empty
<tr>
<td colspan="
4
" class="
center
aligned
">Tiada rekod jabatan.</td>
</tr>
@endforelse
</tbody>
</table>
</div>
</div>
</div>
@endsection
\ No newline at end of file
packages/portal/mileage/resources/views/lkpdepartment/show.blade.php
deleted
100644 → 0
View file @
7724ee6e
@
extends
(
'ui::layouts.app'
)
@
section
(
'content'
)
<
div
class
="
ui
segments
">
<div class="
ui
segment
">
<p style="
font
-
weight
:
bold
;
margin
:
0
;
">Maklumat Jabatan</p>
</div>
<div class="
ui
secondary
segment
">
<div class="
ui
segment
">
<table class="
ui
definition
table
">
<tbody>
<tr>
<td class="
two
wide
column
">ID Jabatan</td>
<td>{{
$department->id
}}</td>
</tr>
<tr>
<td>Kod Jabatan</td>
<td><strong>{{
$department->code
}}</strong></td>
</tr>
<tr>
<td>Keterangan</td>
<td>{{
$department->description
}}</td>
</tr>
<tr>
<td>Status</td>
<td>
@if(
$department->status
=== 'Aktif' ||
$department->status
== '1')
<span class="
ui
green
label
small
">Aktif</span>
@else
<span class="
ui
red
label
small
">Tidak Aktif</span>
@endif
</td>
</tr>
</tbody>
</table>
<div style="
margin
-
top
:
20
px
;
">
<a href="
{{
route
(
'mileage::department.edit'
,
$department
->
id
)
}}
" class="
ui
button
primary
">
<i class="
edit
icon
"></i> Kemaskini
</a>
<a href="
{{
route
(
'mileage::department.index'
)
}}
" class="
ui
button
basic
">
Kembali
</a>
</div>
</div>
</div>
</div>
@endsection
\ No newline at end of file
packages/portal/mileage/resources/views/lkpfacategory/index.blade.php
View file @
a1423c92
@
extends
(
'ui::layouts.app'
)
@
section
(
'content'
)
<
div
class
="
ui
container
" style="
width
:
100
%
;
">
<!-- Outer Segment Card -->
<div class="
ui
segment
" style="
border
-
radius
:
8
px
;
padding
:
25
px
;
background
:
#fff; box-shadow: 0 1px 3px rgba(0,0,0,0.1);">
<!--
Teal
Ribbon
Label
-->
<
div
class
="
ui
teal
ribbon
label
" style="
font
-
size
:
1
rem
;
padding
:
8
px
16
px
;
margin
-
bottom
:
20
px
;
">
Tetapan Kategori FA (Fixed Allowance)
</div>
<!-- Header Row with Title and Action Buttons -->
<div style="
display
:
flex
;
justify
-
content
:
space
-
between
;
align
-
items
:
center
;
margin
-
bottom
:
25
px
;
">
<h1 class="
ui
header
" style="
margin
:
0
;
font
-
size
:
2
rem
;
font
-
weight
:
700
;
color
:
#222;">
Senarai
Kategori
FA
</
h1
>
<
div
>
<
a
href
=
"{{ route('mileage::mileage.tetapan') }}"
class
="
ui
button
" style="
border
-
radius
:
4
px
;
padding
:
10
px
20
px
;
margin
-
right
:
8
px
;
">
<i class="
arrow
left
icon
"></i> Kembali
</a>
<a href="
{{
route
(
'mileage::fa-category.create'
)
}}
" class="
ui
primary
button
" style="
border
-
radius
:
4
px
;
padding
:
10
px
20
px
;
">
<i class="
plus
icon
"></i> Tambah Kategori FA
</a>
</div>
</div>
@if(session('success'))
<div class="
ui
positive
message
">
<i class="
close
icon
"></i>
...
...
@@ -9,61 +33,79 @@
</div>
@endif
<div class="
ui
segments
">
<div class="
ui
segment
">
<p>Tetapan Kategori FA (Fixed Allowance)</p>
</div>
<!-- Inner Box with Header Bar and Table -->
<div style="
border
:
1
px
solid
#e0e0e0; border-radius: 6px; overflow: hidden;">
<div class="
ui
secondary
segment
">
<div class="
ui
segment
">
<div style="
display
:
flex
;
justify
-
content
:
space
-
between
;
align
-
items
:
center
;
margin
-
bottom
:
20
px
;
">
<p style="
font
-
weight
:
bold
;
margin
:
0
;
">Senarai Kategori FA</p>
<a href="
{{
route
(
'mileage::fa-category.create'
)
}}
" class="
ui
button
primary
small
">
+ Tambah Kategori FA
</a>
<!--
Table
Header
Bar
with
Search
-->
<
div
style
=
"display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background-color: #fff; border-bottom: 1px solid #eee;"
>
<
h3
class
="
ui
header
" style="
margin
:
0
;
font
-
size
:
1.1
rem
;
color
:
#333; font-weight: 600;">
Senarai
Kategori
FA
</
h3
>
<
div
class
="
ui
icon
input
" style="
width
:
220
px
;
">
<input type="
text
" placeholder="
Search
...
" style="
border
-
radius
:
4
px
;
border
:
1
px
solid
#ddd; padding: 6px 12px;">
<
i
class
="
search
icon
"></i>
</div>
</div>
<table class="
ui
table
celled
" id="
fa
-
category
-
table
" style="
width
:
100
%
;
">
<!-- Main Data Table -->
<table class="
ui
single
line
table
" id="
fa
-
category
-
table
" style="
border
:
none
;
margin
:
0
;
">
<thead>
<tr
>
<th width="
80
px
">ID</th>
<th>Kategori
FA</th>
<th width="
120
px
">Status
</th>
<th width="
150
px
">Tindakan
</th>
<tr style="
background
-
color
:
#f9fafb; color: #666; font-size: 0.85rem; text-transform: uppercase;"
>
<
th
style
=
"width: 8%; padding-left: 20px;
"
>
ID
</
th
>
<
th
>
KATEGORI
FA
</
th
>
<
th
style
=
"width: 15%;"
>
STATUS
</
th
>
<
th
class
="
center
aligned
" style="
width
:
25
%
;
">TINDAKAN
</th>
</tr>
</thead>
<tbody>
@forelse(
$faCategories
as
$item
)
<tr>
<td
>{{
$item->id
}}</td>
<td
>{{
$item->fa_category
}}</td>
<td style="
padding
-
left
:
20
px
;
color
:
#666;"
>{{ $item->id }}</td>
<
td
style
=
"font-weight: 600; color: #333;"
>
{{
$item
->
fa_category
}}
</
td
>
<
td
>
@
if
(
$item
->
status
==
1
)
<span class="
ui
green
label
tiny
">Aktif</span>
<
span
class
="
ui
green
label
tiny
" style="
border
-
radius
:
3
px
;
font
-
weight
:
600
;
">Aktif</span>
@else
<span class="
ui
red
label
tiny
">Tidak Aktif</span>
<span class="
ui
red
label
tiny
" style="
border
-
radius
:
3
px
;
font
-
weight
:
600
;
">Tidak Aktif</span>
@endif
</td>
<td>
<div class="
ui
small
icon
buttons
">
<a href="
{{
route
(
'mileage::fa-category.show'
,
$item
->
id
)
}}
" class="
ui
button
basic
" title="
Lihat
"><i class="
eye
icon
"></i></a>
<a href="
{{
route
(
'mileage::fa-category.edit'
,
$item
->
id
)
}}
" class="
ui
button
primary
" title="
Kemaskini
"><i class="
edit
icon
"></i></a>
<td class="
center
aligned
">
<a href="
{{
route
(
'mileage::fa-category.show'
,
$item
->
id
)
}}
" class="
ui
primary
button
compact
" style="
border
-
radius
:
4
px
;
padding
:
8
px
16
px
;
font
-
weight
:
600
;
">
<i class="
eye
icon
"></i> Lihat
</a>
<a href="
{{
route
(
'mileage::fa-category.edit'
,
$item
->
id
)
}}
" class="
ui
warning
button
compact
" style="
border
-
radius
:
4
px
;
padding
:
8
px
16
px
;
font
-
weight
:
600
;
background
-
color
:
#f0ad4e; color: #fff;">
<
i
class
="
edit
icon
"></i> Kemaskini
</a>
<form action="
{{
route
(
'mileage::fa-category.destroy'
,
$item
->
id
)
}}
" method="
POST
" style="
display
:
inline
;
" onsubmit="
return
confirm
(
'Adakah anda pasti untuk memadam rekod ini?'
);
">
@csrf
@method('DELETE')
<button type="
submit
" class="
ui
button
red
" title="
Padam
"><i class="
trash
icon
"></i></button>
<button type="
submit
" class="
ui
red
button
compact
" style="
border
-
radius
:
4
px
;
padding
:
8
px
16
px
;
font
-
weight
:
600
;
">
<i class="
trash
icon
"></i> Padam
</button>
</form>
</div>
</td>
</tr>
@empty
<tr>
<td colspan="
4
" class="
center
aligned
">Tiada rekod kategori FA.</td>
<td colspan="
4
" class="
center
aligned
" style="
padding
:
30
px
;
color
:
#888;
">Tiada rekod kategori FA.</td>
</
tr
>
@
endforelse
</
tbody
>
</
table
>
<!--
Table
Footer
Pagination
Bar
-->
<
div
style
=
"display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background-color: #fff; border-top: 1px solid #eee; font-size: 0.9rem; color: #666;"
>
<
div
>
Showing
1
-
{{
count
(
$faCategories
)
}}
from
{{
count
(
$faCategories
)
}}
</
div
>
<
div
class
="
ui
pagination
menu
mini
" style="
margin
:
0
;
box
-
shadow
:
none
;
border
:
1
px
solid
#e0e0e0;">
<
a
class
="
item
disabled
"><i class="
chevron
left
icon
"></i></a>
<a class="
active
item
">1</a>
<a class="
item
disabled
"><i class="
chevron
right
icon
"></i></a>
</div>
</div>
</div>
</div>
</div>
@endsection
\ No newline at end of file
packages/portal/mileage/resources/views/lkpmileagetask/index.blade.php
View file @
a1423c92
@
extends
(
'ui::layouts.app'
)
@
section
(
'content'
)
@
if
(
session
(
'success'
))
<
div
class
="
ui
container
" style="
width
:
100
%
;
">
<!-- Outer Segment Card -->
<div class="
ui
segment
" style="
border
-
radius
:
8
px
;
padding
:
25
px
;
background
:
#fff; box-shadow: 0 1px 3px rgba(0,0,0,0.1);">
<!--
Teal
Ribbon
Label
-->
<
div
class
="
ui
teal
ribbon
label
" style="
font
-
size
:
1
rem
;
padding
:
8
px
16
px
;
margin
-
bottom
:
20
px
;
">
Tetapan Tugasan Mileage (Audit Task)
</div>
<!-- Header Row with Title and Buttons -->
<div style="
display
:
flex
;
justify
-
content
:
space
-
between
;
align
-
items
:
center
;
margin
-
bottom
:
25
px
;
">
<h1 class="
ui
header
" style="
margin
:
0
;
font
-
size
:
2
rem
;
font
-
weight
:
700
;
color
:
#222;">
Senarai
Tugasan
Mileage
</
h1
>
<
div
>
<
a
href
=
"{{ route('mileage::mileage.tetapan') }}"
class
="
ui
button
" style="
border
-
radius
:
4
px
;
padding
:
10
px
20
px
;
margin
-
right
:
8
px
;
">
<i class="
arrow
left
icon
"></i> Kembali
</a>
<a href="
{{
route
(
'mileage::mileage-task.create'
)
}}
" class="
ui
primary
button
" style="
border
-
radius
:
4
px
;
padding
:
10
px
20
px
;
">
<i class="
plus
icon
"></i> Tambah Tugasan
</a>
</div>
</div>
@if (session('success'))
<div class="
ui
positive
message
">
<i class="
close
icon
"></i>
<div class="
header
">Kejayaan</div>
...
...
@@ -9,61 +33,83 @@
</div>
@endif
<div class="
ui
segments
">
<div class="
ui
segment
">
<p>Tetapan Tugasan Mileage (Audit Task)</p>
</div>
<!-- Inner Box with Header Bar and Table -->
<div style="
border
:
1
px
solid
#e0e0e0; border-radius: 6px; overflow: hidden;">
<div class="
ui
secondary
segment
">
<div class="
ui
segment
">
<div style="
display
:
flex
;
justify
-
content
:
space
-
between
;
align
-
items
:
center
;
margin
-
bottom
:
20
px
;
">
<p style="
font
-
weight
:
bold
;
margin
:
0
;
">Senarai Tugasan Mileage</p>
<a href="
{{
route
(
'mileage::mileage-task.create'
)
}}
" class="
ui
button
primary
small
">
+ Tambah Tugasan
</a>
<!--
Table
Header
Bar
with
Search
-->
<
div
style
=
"display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background-color: #fff; border-bottom: 1px solid #eee;"
>
<
h3
class
="
ui
header
" style="
margin
:
0
;
font
-
size
:
1.1
rem
;
color
:
#333; font-weight: 600;">
Senarai
Tugasan
Mileage
</
h3
>
<
div
class
="
ui
icon
input
" style="
width
:
220
px
;
">
<input type="
text
" placeholder="
Search
...
" style="
border
-
radius
:
4
px
;
border
:
1
px
solid
#ddd; padding: 6px 12px;">
<
i
class
="
search
icon
"></i>
</div>
</div>
<table class="
ui
table
celled
" id="
mileage
-
task
-
table
" style="
width
:
100
%
;
">
<!-- Main Data Table -->
<table class="
ui
single
line
table
" id="
mileage
-
task
-
table
" style="
border
:
none
;
margin
:
0
;
">
<thead>
<tr
>
<th width="
80
px
">ID</th>
<th>Penerangan Tugasan (Description
)</th>
<th width="
120
px
">Status
</th>
<th width="
150
px
">Tindakan
</th>
<tr style="
background
-
color
:
#f9fafb; color: #666; font-size: 0.85rem; text-transform: uppercase;"
>
<
th
style
=
"width: 8%; padding-left: 20px;
"
>
ID
</
th
>
<
th
>
PENERANGAN
TUGASAN
(
DESCRIPTION
)
</
th
>
<
th
style
=
"width: 15%;"
>
STATUS
</
th
>
<
th
class
="
center
aligned
" style="
width
:
20
%
;
">TINDAKAN
</th>
</tr>
</thead>
<tbody>
@forelse(
$tasks
as
$item
)
<tr>
<td
>{{
$item->id
}}</td>
<td
>{{
$item->description
}}</td>
<td style="
padding
-
left
:
20
px
;
color
:
#666;"
>{{ $item->id }}</td>
<
td
style
=
"font-weight: 600; color: #333;"
>
{{
$item
->
description
}}
</
td
>
<
td
>
@
if
(
$item
->
status
==
1
)
<span class="
ui
green
label
tiny
">Aktif</span>
<
span
class
="
ui
green
label
" style="
font
-
weight
:
500
;
border
-
radius
:
4
px
;
padding
:
6
px
12
px
;
">
Aktif
</span>
@else
<span class="
ui
red
label
tiny
">Tidak Aktif</span>
<span class="
ui
label
" style="
background
-
color
:
#a8a8a8; color: #fff; font-weight: 500; border-radius: 4px; padding: 6px 12px;">
Tidak
Aktif
</
span
>
@
endif
</
td
>
<td>
<div class="
ui
small
icon
buttons
">
<a href="
{{
route
(
'mileage::mileage-task.show'
,
$item
->
id
)
}}
" class="
ui
button
basic
" title="
Lihat
"><i class="
eye
icon
"></i></a>
<a href="
{{
route
(
'mileage::mileage-task.edit'
,
$item
->
id
)
}}
" class="
ui
button
primary
" title="
Kemaskini
"><i class="
edit
icon
"></i></a>
<
td
class
="
center
aligned
">
<a href="
{{
route
(
'mileage::mileage-task.show'
,
$item
->
id
)
}}
" class="
ui
primary
button
compact
" style="
border
-
radius
:
4
px
;
padding
:
8
px
16
px
;
font
-
weight
:
600
;
">
<i class="
eye
icon
"></i> Lihat
</a>
<a href="
{{
route
(
'mileage::mileage-task.edit'
,
$item
->
id
)
}}
" class="
ui
warning
button
compact
" style="
border
-
radius
:
4
px
;
padding
:
8
px
16
px
;
font
-
weight
:
600
;
background
-
color
:
#f0ad4e; color: #fff;">
<
i
class
="
edit
icon
"></i> Kemaskini
</a>
<form action="
{{
route
(
'mileage::mileage-task.destroy'
,
$item
->
id
)
}}
" method="
POST
" style="
display
:
inline
;
" onsubmit="
return
confirm
(
'Adakah anda pasti untuk memadam rekod ini?'
);
">
@csrf
@method('DELETE')
<button type="
submit
" class="
ui
button
red
" title="
Padam
"><i class="
trash
icon
"></i></button>
<button type="
submit
" class="
ui
red
button
compact
" style="
border
-
radius
:
4
px
;
padding
:
8
px
16
px
;
font
-
weight
:
600
;
">
<i class="
trash
icon
"></i> Padam
</button>
</form>
</div>
</td>
</tr>
@empty
<tr>
<td colspan="
4
" class="
center
aligned
">Tiada rekod tugasan.</td>
<td colspan="
4
" class="
center
aligned
" style="
padding
:
30
px
;
color
:
#888;
">Tiada rekod tugasan.</td>
</
tr
>
@
endforelse
</
tbody
>
</
table
>
<!--
Table
Footer
Pagination
Bar
-->
<
div
style
=
"display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background-color: #fff; border-top: 1px solid #eee; font-size: 0.9rem; color: #666;"
>
<
div
>
Showing
1
-
{{
count
(
$tasks
)
}}
from
{{
count
(
$tasks
)
}}
</
div
>
<
div
class
="
ui
pagination
menu
mini
" style="
margin
:
0
;
box
-
shadow
:
none
;
border
:
1
px
solid
#e0e0e0;">
<
a
class
="
item
disabled
"><i class="
chevron
left
icon
"></i></a>
<a class="
active
item
">1</a>
<a class="
item
disabled
"><i class="
chevron
right
icon
"></i></a>
</div>
</div>
</div>
</div>
</div>
@endsection
\ No newline at end of file
packages/portal/mileage/resources/views/lkprate/index.blade.php
View file @
a1423c92
@
extends
(
'ui::layouts.app'
)
@
section
(
'content'
)
<
div
class
="
ui
container
">
<h2 class="
ui
header
">Senarai Kadar Mileage</h2>
<
div
class
="
ui
container
" style="
width
:
100
%
;
">
<!-- Outer Segment Card -->
<div class="
ui
segment
" style="
border
-
radius
:
8
px
;
padding
:
25
px
;
background
:
#fff; box-shadow: 0 1px 3px rgba(0,0,0,0.1);">
<div class="
ui
segment
">
@if(session('success'))
<!--
Teal
Ribbon
Label
-->
<
div
class
="
ui
teal
ribbon
label
" style="
font
-
size
:
1
rem
;
padding
:
8
px
16
px
;
margin
-
bottom
:
20
px
;
">
Senarai Kadar Mileage (LKP Rate)
</div>
<!-- Header Row with Title and Buttons -->
<div style="
display
:
flex
;
justify
-
content
:
space
-
between
;
align
-
items
:
center
;
margin
-
bottom
:
25
px
;
">
<h1 class="
ui
header
" style="
margin
:
0
;
font
-
size
:
2
rem
;
font
-
weight
:
700
;
color
:
#222;">
Senarai
Kadar
Mileage
</
h1
>
<
div
>
<
a
href
=
"{{ route('mileage::mileage.tetapan') }}"
class
="
ui
button
" style="
border
-
radius
:
4
px
;
padding
:
10
px
20
px
;
margin
-
right
:
8
px
;
">
<i class="
arrow
left
icon
"></i> Kembali
</a>
<a href="
{{
route
(
'mileage::rate.create'
)
}}
" class="
ui
primary
button
" style="
border
-
radius
:
4
px
;
padding
:
10
px
20
px
;
">
<i class="
plus
icon
"></i> Tambah Kadar
</a>
</div>
</div>
@if (session('success'))
<div class="
ui
positive
message
">
<i class="
close
icon
"></i>
<div class="
header
">Kejayaan</div>
<p>{{ session('success') }}</p>
</div>
@endif
<div class="
ui
grid
middle
aligned
">
<div class="
eight
wide
column
">
<h3 class="
ui
header
" style="
margin
:
0
;
">Senarai Kadar Mileage (LKP Rate)</h3>
</div>
<div class="
eight
wide
column
text
right
" style="
text
-
align
:
right
;
">
<a href="
{{
route
(
'mileage::rate.create'
)
}}
" class="
ui
button
primary
small
">+ Tambah Kadar</a>
<!-- Inner Box with Header Bar and Table -->
<div style="
border
:
1
px
solid
#e0e0e0; border-radius: 6px; overflow: hidden;">
<!--
Table
Header
Bar
with
Search
-->
<
div
style
=
"display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background-color: #fff; border-bottom: 1px solid #eee;"
>
<
h3
class
="
ui
header
" style="
margin
:
0
;
font
-
size
:
1.1
rem
;
color
:
#333; font-weight: 600;">
Senarai
Kadar
Mileage
</
h3
>
<
div
class
="
ui
icon
input
" style="
width
:
220
px
;
">
<input type="
text
" placeholder="
Search
...
" style="
border
-
radius
:
4
px
;
border
:
1
px
solid
#ddd; padding: 6px 12px;">
<
i
class
="
search
icon
"></i>
</div>
</div>
<div class="
ui
divider
"></div>
<table class="
ui
table
celled
striped
">
<!-- Main Data Table -->
<table class="
ui
single
line
table
" style="
border
:
none
;
margin
:
0
;
">
<thead>
<tr>
<th style="
width
:
80
px
;
">ID</th>
<tr
style="
background
-
color
:
#f9fafb; color: #666; font-size: 0.85rem; text-transform: uppercase;"
>
<
th
style
=
"width: 8
%; padding-left: 2
0px;"
>
ID
</
th
>
<
th
>
JENIS
KENDERAAN
</
th
>
<th>KM DARI</th>
<th>KM HINGGA</th>
<th>KADAR (RM)</th>
<th
style="
width
:
150
px
;
" class="
center
aligned
">TINDAKAN</th>
<
th
style
=
"width: 15%;"
>
KM
DARI
</
th
>
<
th
style
=
"width: 15%;"
>
KM
HINGGA
</
th
>
<
th
style
=
"width: 15%;"
>
KADAR
(
RM
)
</
th
>
<
th
class
="
center
aligned
" style="
width
:
22
%
;
">TINDAKAN</th>
</tr>
</thead>
<tbody>
@forelse(
$rates
as
$item
)
<tr>
<td>{{
$item->id
}}</td>
<td>{{
$item->jenisKenderaan
->keterangan ??
$item->jenisKenderaan
->nama ??
$item->jenisKenderaan
->name ?? 'N/A' }}</td>
<td>{{
$item->km_from
}}</td>
<td>{{
$item->km_to
}}</td>
<td>{{ number_format(
$item->rate
, 2) }}</td>
<td style="
padding
-
left
:
20
px
;
color
:
#666;">{{ $item->id }}</td>
<
td
style
=
"font-weight: 600; color: #333;"
>
{{
$item
->
jenisKenderaan
->
keterangan
??
$item
->
jenisKenderaan
->
nama
??
$item
->
jenisKenderaan
->
name
??
'N/A'
}}
</
td
>
<
td
style
=
"color: #444;"
>
{{
$item
->
km_from
}}
</
td
>
<
td
style
=
"color: #444;"
>
{{
$item
->
km_to
}}
</
td
>
<
td
style
=
"font-weight: 600; color: #2e7d32;"
>
RM
{{
number_format
(
$item
->
rate
,
2
)
}}
</
td
>
<
td
class
="
center
aligned
">
<a href="
{{
route
(
'mileage::rate.show'
,
$item
->
id
)
}}
" class="
ui
button
basic
compact
icon
" title="
Papar
">
<i class="
eye
icon
"></i>
<a href="
{{
route
(
'mileage::rate.show'
,
$item
->
id
)
}}
" class="
ui
primary
button
compact
" style="
border
-
radius
:
4
px
;
padding
:
8
px
16
px
;
font
-
weight
:
600
;
">
<i class="
eye
icon
"></i>
Lihat
</a>
<a href="
{{
route
(
'mileage::rate.edit'
,
$item
->
id
)
}}
" class="
ui
button
primary
compact
icon
" title="
Kemaskini
">
<i class="
edit
icon
"></i>
<a href="
{{
route
(
'mileage::rate.edit'
,
$item
->
id
)
}}
" class="
ui
warning
button
compact
" style="
border
-
radius
:
4
px
;
padding
:
8
px
16
px
;
font
-
weight
:
600
;
background
-
color
:
#f0ad4e; color: #fff;
">
<
i
class
="
edit
icon
"></i>
Kemaskini
</a>
<form action="
{{
route
(
'mileage::rate.destroy'
,
$item
->
id
)
}}
" method="
POST
" style="
display
:
inline
;
">
<form action="
{{
route
(
'mileage::rate.destroy'
,
$item
->
id
)
}}
" method="
POST
" style="
display
:
inline
;
"
onsubmit="
return
confirm
(
'Padam rekod ini?'
);
"
>
@csrf
@method('DELETE')
<button
class="
ui
button
red
compact
icon
" title="
Padam
" onclick="
return
confirm
(
'Padam rekod ini?'
)
">
<i class="
trash
icon
"></i>
<button
type="
submit
" class="
ui
red
button
compact
" style="
border
-
radius
:
4
px
;
padding
:
8
px
16
px
;
font
-
weight
:
600
;
">
<i class="
trash
icon
"></i>
Padam
</button>
</form>
</td>
</tr>
@empty
<tr>
<td colspan="
6
" class="
center
aligned
text
muted
">Tiada rekod dijumpai.</td>
<td colspan="
6
" class="
center
aligned
" style="
padding
:
30
px
;
color
:
#888;
">Tiada rekod dijumpai.</td>
</
tr
>
@
endforelse
</
tbody
>
</
table
>
<!--
Table
Footer
Pagination
Bar
-->
<
div
style
=
"display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background-color: #fff; border-top: 1px solid #eee; font-size: 0.9rem; color: #666;"
>
<
div
>
Showing
1
-
{{
count
(
$rates
)
}}
from
{{
count
(
$rates
)
}}
</
div
>
<
div
class
="
ui
pagination
menu
mini
" style="
margin
:
0
;
box
-
shadow
:
none
;
border
:
1
px
solid
#e0e0e0;">
<
a
class
="
item
disabled
"><i class="
chevron
left
icon
"></i></a>
<a class="
active
item
">1</a>
<a class="
item
disabled
"><i class="
chevron
right
icon
"></i></a>
</div>
</div>
</div>
</div>
</div>
@endsection
\ No newline at end of file
packages/portal/mileage/resources/views/lkpstatus/index.blade.php
View file @
a1423c92
...
...
@@ -10,15 +10,20 @@
Senarai Status Mileage
</div>
<!-- Header Row with Title and Button -->
<!-- Header Row with Title and Button
s
-->
<div style="
display
:
flex
;
justify
-
content
:
space
-
between
;
align
-
items
:
center
;
margin
-
bottom
:
25
px
;
">
<h1 class="
ui
header
" style="
margin
:
0
;
font
-
size
:
2
rem
;
font
-
weight
:
700
;
color
:
#222;">
Senarai
Status
Mileage
</
h1
>
<
div
>
<
a
href
=
"{{ route('mileage::mileage.tetapan') }}"
class
="
ui
button
" style="
border
-
radius
:
4
px
;
padding
:
10
px
20
px
;
margin
-
right
:
8
px
;
">
<i class="
arrow
left
icon
"></i> Kembali
</a>
<a href="
{{
route
(
'mileage::lkpstatus.create'
)
}}
" class="
ui
primary
button
" style="
border
-
radius
:
4
px
;
padding
:
10
px
20
px
;
">
Permohonan Baharu
<i class="
plus
icon
"></i>
Permohonan Baharu
</a>
</div>
</div>
@if (session('success'))
<div class="
ui
positive
message
">
...
...
packages/portal/mileage/resources/views/tetapan/index.blade.php
View file @
a1423c92
...
...
@@ -76,18 +76,6 @@
</
div
>
</
a
>
<!--
Department
Card
-->
<
a
href
=
"{{ route('mileage::department.index') }}"
class
="
card
" style="
box
-
shadow
:
0
1
px
3
px
rgba
(
0
,
0
,
0
,
0.12
);
border
-
radius
:
6
px
;
">
<div class="
content
" style="
padding
:
20
px
;
">
<i class="
right
floated
building
icon
teal
large
"></i>
<div class="
header
" style="
font
-
size
:
1.2
rem
;
color
:
#222;">Jabatan</div>
<
div
class
="
meta
" style="
margin
-
top
:
5
px
;
">LKP Department</div>
<div class="
description
" style="
margin
-
top
:
10
px
;
color
:
#666;">
Pengurusan
senarai
jabatan
/
kod
bahagian
.
</
div
>
</
div
>
</
a
>
</
div
>
</
div
>
</
div
>
...
...
packages/portal/mileage/routes/web.php
View file @
a1423c92
...
...
@@ -84,14 +84,6 @@ function () {
// Tetapan
Route
::
get
(
'tetapan'
,
[
'uses'
=>
'TetapanController@index'
,
'as'
=>
'mileage.tetapan'
]);
// Department
Route
::
get
(
'department'
,
[
DepartmentController
::
class
,
'index'
])
->
name
(
'department.index'
);
Route
::
get
(
'department/create'
,
[
DepartmentController
::
class
,
'create'
])
->
name
(
'department.create'
);
Route
::
post
(
'department'
,
[
DepartmentController
::
class
,
'store'
])
->
name
(
'department.store'
);
Route
::
get
(
'department/{id}'
,
[
DepartmentController
::
class
,
'show'
])
->
name
(
'department.show'
);
Route
::
get
(
'department/{id}/edit'
,
[
DepartmentController
::
class
,
'edit'
])
->
name
(
'department.edit'
);
Route
::
put
(
'department/{id}'
,
[
DepartmentController
::
class
,
'update'
])
->
name
(
'department.update'
);
Route
::
delete
(
'department/{id}'
,
[
DepartmentController
::
class
,
'destroy'
])
->
name
(
'department.destroy'
);
// Jenis Kenderaan
Route
::
get
(
'jenis-kenderaan'
,
[
JenisKenderaanController
::
class
,
'index'
])
->
name
(
'jenis-kenderaan.index'
);
...
...
packages/portal/mileage/src/Http/Controllers/DepartmentController.php
deleted
100644 → 0
View file @
7724ee6e
<?php
namespace
Portal\Mileage\Http\Controllers
;
use
App\Http\Controllers\Controller
;
use
Illuminate\Http\Request
;
use
Portal\Mileage\Model\LkpDepartment
;
class
DepartmentController
extends
Controller
{
/**
* Display a listing of departments.
*/
public
function
index
(
Request
$request
)
{
$departments
=
LkpDepartment
::
latest
(
'id'
)
->
get
();
return
view
(
'mileage::lkpdepartment.index'
,
compact
(
'departments'
));
}
/**
* Show the form for creating a new department.
*/
public
function
create
()
{
return
view
(
'mileage::lkpdepartment.create'
);
}
/**
* Store a newly created department in storage.
*/
public
function
store
(
Request
$request
)
{
$request
->
validate
([
'code'
=>
'required|string|max:50'
,
'description'
=>
'required|string|max:255'
,
'status'
=>
'required|in:0,1'
,
]);
LkpDepartment
::
create
([
'code'
=>
$request
->
code
,
'description'
=>
$request
->
description
,
'status'
=>
$request
->
status
,
'created_by'
=>
auth
()
->
id
(),
'updated_by'
=>
auth
()
->
id
(),
]);
return
redirect
()
->
route
(
'mileage::department.index'
)
->
with
(
'success'
,
'Jabatan berjaya ditambah.'
);
}
/**
* Display the specified department.
*/
public
function
show
(
$id
)
{
$department
=
LkpDepartment
::
findOrFail
(
$id
);
return
view
(
'mileage::lkpdepartment.show'
,
compact
(
'department'
));
}
/**
* Show the form for editing the specified department.
*/
public
function
edit
(
$id
)
{
$department
=
LkpDepartment
::
findOrFail
(
$id
);
return
view
(
'mileage::lkpdepartment.edit'
,
compact
(
'department'
));
}
/**
* Update the specified department in storage.
*/
public
function
update
(
Request
$request
,
$id
)
{
$request
->
validate
([
'code'
=>
'required|string|max:50'
,
'description'
=>
'required|string|max:255'
,
'status'
=>
'required|in:0,1'
,
]);
$department
=
LkpDepartment
::
findOrFail
(
$id
);
$department
->
update
([
'code'
=>
$request
->
code
,
'description'
=>
$request
->
description
,
'status'
=>
$request
->
status
,
'updated_by'
=>
auth
()
->
id
(),
]);
return
redirect
()
->
route
(
'mileage::department.index'
)
->
with
(
'success'
,
'Jabatan berjaya dikemaskini.'
);
}
/**
* Remove the specified department from storage.
*/
public
function
destroy
(
$id
)
{
$department
=
LkpDepartment
::
findOrFail
(
$id
);
$department
->
delete
();
return
redirect
()
->
route
(
'mileage::department.index'
)
->
with
(
'success'
,
'Jabatan berjaya dipadam.'
);
}
}
\ No newline at end of file
packages/portal/overtime/resources/views/lkpotask/index.blade.php
View file @
a1423c92
@
extends
(
'ui::layouts.app'
)
@
section
(
'content'
)
@
if
(
session
(
'success'
))
<
div
class
="
ui
container
" style="
width
:
100
%
;
">
<!-- Outer Segment Card -->
<div class="
ui
segment
" style="
border
-
radius
:
8
px
;
padding
:
25
px
;
background
:
#fff; box-shadow: 0 1px 3px rgba(0,0,0,0.1);">
<!--
Teal
Ribbon
Label
-->
<
div
class
="
ui
teal
ribbon
label
" style="
font
-
size
:
1
rem
;
padding
:
8
px
16
px
;
margin
-
bottom
:
20
px
;
">
Senarai Tugasan OT
</div>
<!-- Header Row with Title and Buttons -->
<div style="
display
:
flex
;
justify
-
content
:
space
-
between
;
align
-
items
:
center
;
margin
-
bottom
:
25
px
;
">
<h1 class="
ui
header
" style="
margin
:
0
;
font
-
size
:
2
rem
;
font
-
weight
:
700
;
color
:
#222;">
Senarai
Tugasan
OT
</
h1
>
<
div
>
<
a
href
=
"{{ route('overtime::overtime.tetapan') }}"
class
="
ui
button
" style="
border
-
radius
:
4
px
;
padding
:
10
px
20
px
;
margin
-
right
:
8
px
;
">
<i class="
arrow
left
icon
"></i> Kembali
</a>
<a href="
{{
route
(
'overtime::ot-task.create'
)
}}
" class="
ui
primary
button
" style="
border
-
radius
:
4
px
;
padding
:
10
px
20
px
;
">
<i class="
plus
icon
"></i> Tambah Tugasan
</a>
</div>
</div>
@if (session('success'))
<div class="
ui
positive
message
">
<i class="
close
icon
"></i>
<div class="
header
">Kejayaan</div>
...
...
@@ -9,61 +33,85 @@
</div>
@endif
<div class="
ui
segments
">
<div class="
ui
segment
">
<p>Senarai Tugasan OT</p>
</div>
<!-- Inner Box with Header Bar and Table -->
<div style="
border
:
1
px
solid
#e0e0e0; border-radius: 6px; overflow: hidden;">
<div class="
ui
secondary
segment
">
<div class="
ui
segment
">
<div style="
display
:
flex
;
justify
-
content
:
space
-
between
;
align
-
items
:
center
;
margin
-
bottom
:
20
px
;
">
<p style="
font
-
weight
:
bold
;
margin
:
0
;
">Senarai Tugasan OT (LKP OT Task)</p>
<a href="
{{
route
(
'overtime::ot-task.create'
)
}}
" class="
ui
button
primary
small
">
+ Tambah Tugasan
</a>
<!--
Table
Header
Bar
with
Search
-->
<
div
style
=
"display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background-color: #fff; border-bottom: 1px solid #eee;"
>
<
h3
class
="
ui
header
" style="
margin
:
0
;
font
-
size
:
1.1
rem
;
color
:
#333; font-weight: 600;">
Senarai
Tugasan
OT
(
LKP
OT
Task
)
</
h3
>
<
div
class
="
ui
icon
input
" style="
width
:
220
px
;
">
<input type="
text
" placeholder="
Search
...
" style="
border
-
radius
:
4
px
;
border
:
1
px
solid
#ddd; padding: 6px 12px;">
<
i
class
="
search
icon
"></i>
</div>
</div>
<table class="
ui
table
celled
" id="
ot
-
task
-
table
" style="
width
:
100
%
;
">
<!-- Main Data Table -->
<table class="
ui
single
line
table
" id="
ot
-
task
-
table
" style="
border
:
none
;
margin
:
0
;
">
<thead>
<tr>
<th>Nama Tugasan</th>
<th>Kod Tugasan</th>
<th>Status</th>
<th width="
150
px
">Tindakan</th>
<tr style="
background
-
color
:
#f9fafb; color: #666; font-size: 0.85rem; text-transform: uppercase;">
<
th
style
=
"width: 8%; padding-left: 20px;"
>
NO
</
th
>
<
th
style
=
"width: 30%;"
>
NAMA
TUGASAN
</
th
>
<
th
style
=
"width: 20%;"
>
KOD
TUGASAN
</
th
>
<
th
style
=
"width: 15%;"
>
STATUS
</
th
>
<
th
class
="
center
aligned
" style="
width
:
27
%
;
">TINDAKAN</th>
</tr>
</thead>
<tbody>
@forelse(
$tasks
as
$task
)
@forelse(
$tasks
as
$index
=>
$task
)
<tr>
<td>{{
$task->task_name
}}</td>
<td>{{
$task->task_code
}}</td>
<td style="
padding
-
left
:
20
px
;
color
:
#666;">{{ $index + 1 }}</td>
<
td
style
=
"font-weight: 600; color: #333;"
>
{{
$task
->
task_name
}}
</
td
>
<
td
style
=
"color: #444;"
>
{{
$task
->
task_code
}}
</
td
>
<
td
>
@
if
(
$task
->
is_active
)
<span class="
ui
green
label
small
">Aktif</span>
<
span
class
="
ui
green
label
" style="
font
-
weight
:
500
;
border
-
radius
:
4
px
;
padding
:
6
px
12
px
;
">
Aktif
</span>
@else
<span class="
ui
red
label
small
">Tidak Aktif</span>
<span class="
ui
label
" style="
background
-
color
:
#a8a8a8; color: #fff; font-weight: 500; border-radius: 4px; padding: 6px 12px;">
Tidak
Aktif
</
span
>
@
endif
</
td
>
<td>
<div class="
ui
small
icon
buttons
">
<a href="
{{
route
(
'overtime::ot-task.show'
,
$task
->
id
)
}}
" class="
ui
button
basic
" title="
Lihat
"><i class="
eye
icon
"></i></a>
<a href="
{{
route
(
'overtime::ot-task.edit'
,
$task
->
id
)
}}
" class="
ui
button
primary
" title="
Kemaskini
"><i class="
edit
icon
"></i></a>
<
td
class
="
center
aligned
">
<a href="
{{
route
(
'overtime::ot-task.show'
,
$task
->
id
)
}}
" class="
ui
primary
button
compact
" style="
border
-
radius
:
4
px
;
padding
:
8
px
14
px
;
font
-
weight
:
600
;
" title="
Lihat
">
<i class="
eye
icon
"></i> Lihat
</a>
<a href="
{{
route
(
'overtime::ot-task.edit'
,
$task
->
id
)
}}
" class="
ui
warning
button
compact
" style="
border
-
radius
:
4
px
;
padding
:
8
px
14
px
;
font
-
weight
:
600
;
background
-
color
:
#f0ad4e; color: #fff;" title="Kemaskini">
<
i
class
="
edit
icon
"></i> Kemaskini
</a>
<form action="
{{
route
(
'overtime::ot-task.destroy'
,
$task
->
id
)
}}
" method="
POST
" style="
display
:
inline
;
" onsubmit="
return
confirm
(
'Adakah anda pasti untuk memadam tugasan ini?'
);
">
@csrf
@method('DELETE')
<button type="
submit
" class="
ui
button
red
" title="
Padam
"><i class="
trash
icon
"></i></button>
<button type="
submit
" class="
ui
negative
button
compact
" style="
border
-
radius
:
4
px
;
padding
:
8
px
14
px
;
font
-
weight
:
600
;
" title="
Padam
">
<i class="
trash
icon
"></i> Padam
</button>
</form>
</div>
</td>
</tr>
@empty
<tr>
<td colspan="
4
" class="
center
aligned
">Tiada rekod tugasan OT.</td>
<td colspan="
5
" class="
center
aligned
" style="
padding
:
30
px
;
color
:
#888;
">Tiada rekod tugasan OT.</td>
</
tr
>
@
endforelse
</
tbody
>
</
table
>
<!--
Table
Footer
Pagination
Bar
-->
<
div
style
=
"display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background-color: #fff; border-top: 1px solid #eee; font-size: 0.9rem; color: #666;"
>
<
div
>
Showing
1
-
{{
count
(
$tasks
)
}}
from
{{
count
(
$tasks
)
}}
</
div
>
<
div
class
="
ui
pagination
menu
mini
" style="
margin
:
0
;
box
-
shadow
:
none
;
border
:
1
px
solid
#e0e0e0;">
<
a
class
="
item
disabled
"><i class="
chevron
left
icon
"></i></a>
<a class="
active
item
">1</a>
<a class="
item
disabled
"><i class="
chevron
right
icon
"></i></a>
</div>
</div>
</div>
</div>
</div>
@endsection
\ No newline at end of file
packages/portal/overtime/resources/views/lkpstatus/index.blade.php
View file @
a1423c92
...
...
@@ -5,20 +5,25 @@
<!-- Outer Segment Card -->
<div class="
ui
segment
" style="
border
-
radius
:
8
px
;
padding
:
25
px
;
background
:
#fff; box-shadow: 0 1px 3px rgba(0,0,0,0.1);">
<!--
Teal
Ribbon
Label
(
Placed
inside
the
card
container
)
-->
<!--
Teal
Ribbon
Label
-->
<
div
class
="
ui
teal
ribbon
label
" style="
font
-
size
:
1
rem
;
padding
:
8
px
16
px
;
margin
-
bottom
:
20
px
;
">
Senarai Status Overtime
</div>
<!-- Header Row with Title and Button -->
<!-- Header Row with Title and Button
s
-->
<div style="
display
:
flex
;
justify
-
content
:
space
-
between
;
align
-
items
:
center
;
margin
-
bottom
:
25
px
;
">
<h1 class="
ui
header
" style="
margin
:
0
;
font
-
size
:
2
rem
;
font
-
weight
:
700
;
color
:
#222;">
Senarai
Status
Overtime
</
h1
>
<
div
>
<
a
href
=
"{{ route('overtime::overtime.tetapan') }}"
class
="
ui
button
" style="
border
-
radius
:
4
px
;
padding
:
10
px
20
px
;
margin
-
right
:
8
px
;
">
<i class="
arrow
left
icon
"></i> Kembali
</a>
<a href="
{{
route
(
'overtime::lkpstatus.create'
)
}}
" class="
ui
primary
button
" style="
border
-
radius
:
4
px
;
padding
:
10
px
20
px
;
">
Permohonan Baharu
<i class="
plus
icon
"></i>
Permohonan Baharu
</a>
</div>
</div>
@if (session('success'))
<div class="
ui
positive
message
">
...
...
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