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
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
550 additions
and
644 deletions
+550
-644
packages/portal/mileage/resources/views/jeniskenderaan/create.blade.php
+54
-20
packages/portal/mileage/resources/views/jeniskenderaan/index.blade.php
+96
-57
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
+97
-54
packages/portal/mileage/resources/views/lkpmileagetask/index.blade.php
+101
-54
packages/portal/mileage/resources/views/lkprate/index.blade.php
+79
-36
packages/portal/mileage/resources/views/lkpstatus/index.blade.php
+9
-4
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
+104
-55
packages/portal/overtime/resources/views/lkpstatus/index.blade.php
+10
-5
No files found.
packages/portal/mileage/resources/views/jeniskenderaan/create.blade.php
View file @
a1423c92
@
extends
(
'ui::layouts.app'
)
@
extends
(
'ui::layouts.app'
)
@
section
(
'content'
)
@
section
(
'content'
)
<
div
class
="
ui
segments
">
<
div
class
="
ui
container
" style="
width
:
100
%
;
">
<div class="
ui
segment
">
<!-- Outer Segment Card -->
<p>Tambah Jenis Kenderaan Baru</p>
<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>
</div>
<div class="
ui
secondary
segment
">
<!-- Header Row with Title and Back Button -->
<div class="
ui
segment
">
<div style="
display
:
flex
;
justify
-
content
:
space
-
between
;
align
-
items
:
center
;
margin
-
bottom
:
25
px
;
">
<form action="
{{
route
(
'mileage::jenis-kenderaan.store'
)
}}
" method="
POST
" class="
ui
form
">
<h1 class="
ui
header
" style="
margin
:
0
;
font
-
size
:
2
rem
;
font
-
weight
:
700
;
color
:
#222;">
@csrf
Tambah
Jenis
Kenderaan
Baharu
</
h1
>
<div class="
field
@
error
(
'name'
)
error
@
enderror
">
<
a
href
=
"{{ route('mileage::jenis-kenderaan.index') }}"
class
="
ui
button
" style="
border
-
radius
:
4
px
;
padding
:
10
px
20
px
;
">
<label>Nama Kenderaan <span style="
color
:
red
;
">*</span></label>
<i class="
arrow
left
icon
"></i> Kembali
<input type="
text
" name="
name
" value="
{{
old
(
'name'
)
}}
" placeholder="
Contoh
:
Kereta
,
Motosikal
" required>
</a>
@error('name')
</div>
<div class="
ui
basic
red
pointing
prompt
label
">{{
$message
}}</div>
@enderror
</div>
<div style="
margin
-
top
:
20
px
;
">
@if (
$errors->any
())
<button type="
submit
" class="
ui
button
primary
"><i class="
save
icon
"></i> Simpan</button>
<div class="
ui
negative
message
">
<a href="
{{
route
(
'mileage::jenis-kenderaan.index'
)
}}
" class="
ui
button
basic
">Batal</a>
<i class="
close
icon
"></i>
</div>
<div class="
header
">Ralat Borang</div>
</form>
<ul class="
list
">
@foreach (
$errors->all
() as
$error
)
<li>{{
$error
== 'validation.unique' ? 'Nama kenderaan ini telah wujud.' :
$error
}}</li>
@endforeach
</ul>
</div>
</div>
@endif
<!-- 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 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
== 'validation.unique' ? 'Nama kenderaan ini telah wujud.' :
$message
}}
</div>
@enderror
</div>
<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>
</div>
@endsection
@endsection
\ No newline at end of file
packages/portal/mileage/resources/views/jeniskenderaan/index.blade.php
View file @
a1423c92
@
extends
(
'ui::layouts.app'
)
@
extends
(
'ui::layouts.app'
)
@
section
(
'content'
)
@
section
(
'content'
)
@
if
(
session
(
'success'
))
<
div
class
="
ui
container
" style="
width
:
100
%
;
">
<
div
class
="
ui
positive
message
">
<!-- Outer Segment Card -->
<i class="
close
icon
"></i>
<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="
header
">Kejayaan</div>
<p>{{ session('success') }}</p>
<!--
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>
</div>
@endif
@if(session('error'))
<!-- Header Row with Title and Buttons -->
<div class="
ui
negative
message
">
<div style="
display
:
flex
;
justify
-
content
:
space
-
between
;
align
-
items
:
center
;
margin
-
bottom
:
25
px
;
">
<i class="
close
icon
"></i>
<h1 class="
ui
header
" style="
margin
:
0
;
font
-
size
:
2
rem
;
font
-
weight
:
700
;
color
:
#222;">
<div class="
header
">Ralat</div>
Senarai
Jenis
Kenderaan
<p>{{ session('error') }}</p>
</
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>
</div>
@endif
<div class="
ui
segments
">
@if(session('success'))
<div class="
ui
segment
">
<div class="
ui
positive
message
">
<p>Tetapan Jenis Kenderaan</p>
<i class="
close
icon
"></i>
</div>
<div class="
header
">Kejayaan</div>
<p>{{ session('success') }}</p>
</div>
@endif
<div class="
ui
secondary
segment
">
@if(session('error'))
<div class="
ui
segment
">
<div class="
ui
negative
message
">
<div style="
display
:
flex
;
justify
-
content
:
space
-
between
;
align
-
items
:
center
;
margin
-
bottom
:
20
px
;
">
<i class="
close
icon
"></i>
<p style="
font
-
weight
:
bold
;
margin
:
0
;
">Senarai Jenis Kenderaan</p>
<div class="
header
">Ralat</div>
<a href="
{{
route
(
'mileage::jenis-kenderaan.create'
)
}}
" class="
ui
button
primary
small
">
<p>{{ session('error') }}</p>
+ Tambah Jenis Kenderaan
</div>
</a>
@endif
<!-- 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
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>
</div>
<table class="
ui
table
celled
" id="
jenis
-
kenderaan
-
table
" style="
width
:
100
%
;
">
<!-- Main Data Table -->
<thead>
<table class="
ui
single
line
table
" id="
jenis
-
kenderaan
-
table
" style="
border
:
none
;
margin
:
0
;
">
<thead>
<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>
<tr>
<th width="
80
px
">ID</th>
<td style="
padding
-
left
:
20
px
;
color
:
#666;">{{ $item->id }}</td>
<th>Nama Kenderaan</th>
<
td
style
=
"font-weight: 600; color: #333;"
>
{{
$item
->
name
}}
</
td
>
<th>Bil. Kadar (Rates)</th>
<
td
class
="
center
aligned
">
<th>Bil. Tuntutan (Claims)</th>
<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
;
">
<th width="
150
px
">Tindakan</th>
<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
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>
</tr>
</thead>
@empty
<tbody>
<tr>
@forelse(
$jenisKenderaan
as
$item
)
<td colspan="
3
" class="
center
aligned
" style="
padding
:
30
px
;
color
:
#888;">Tiada rekod jenis kenderaan.</td>
<tr>
</
tr
>
<td>{{
$item->id
}}</td>
@
endforelse
<td>{{
$item->name
}}</td>
</
tbody
>
<td><span class="
ui
label
tiny
">{{
$item->rates_count
}}</span></td>
</
table
>
<td><span class="
ui
label
tiny
">{{
$item->claims_count
}}</span></td>
<td>
<!--
Table
Footer
Pagination
Bar
-->
<div class="
ui
small
icon
buttons
">
<
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;"
>
<a href="
{{
route
(
'mileage::jenis-kenderaan.show'
,
$item
->
id
)
}}
" class="
ui
button
basic
" title="
Lihat
"><i class="
eye
icon
"></i></a>
<
div
>
<a href="
{{
route
(
'mileage::jenis-kenderaan.edit'
,
$item
->
id
)
}}
" class="
ui
button
primary
" title="
Kemaskini
"><i class="
edit
icon
"></i></a>
Showing
1
-
{{
count
(
$jenisKenderaan
)
}}
from
{{
count
(
$jenisKenderaan
)
}}
<form action="
{{
route
(
'mileage::jenis-kenderaan.destroy'
,
$item
->
id
)
}}
" method="
POST
" style="
display
:
inline
;
" onsubmit="
return
confirm
(
'Adakah anda pasti untuk memadam rekod ini?'
);
">
</
div
>
@csrf
<
div
class
="
ui
pagination
menu
mini
" style="
margin
:
0
;
box
-
shadow
:
none
;
border
:
1
px
solid
#e0e0e0;">
@method('DELETE')
<
a
class
="
item
disabled
"><i class="
chevron
left
icon
"></i></a>
<button type="
submit
" class="
ui
button
red
" title="
Padam
"><i class="
trash
icon
"></i></button>
<a class="
active
item
">1</a>
</form>
<a class="
item
disabled
"><i class="
chevron
right
icon
"></i></a>
</div>
</div>
</td>
</tr>
@empty
<tr>
<td colspan="
5
" class="
center
aligned
">Tiada rekod jenis kenderaan.</td>
</tr>
@endforelse
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
@endsection
@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'
)
@
extends
(
'ui::layouts.app'
)
@
section
(
'content'
)
@
section
(
'content'
)
@
if
(
session
(
'success'
))
<
div
class
="
ui
container
" style="
width
:
100
%
;
">
<
div
class
="
ui
positive
message
">
<!-- Outer Segment Card -->
<i class="
close
icon
"></i>
<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="
header
">Kejayaan</div>
<p>{{ session('success') }}</p>
<!--
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>
</div>
@endif
<div class="
ui
segments
">
<!-- Header Row with Title and Action Buttons -->
<div class="
ui
segment
">
<div style="
display
:
flex
;
justify
-
content
:
space
-
between
;
align
-
items
:
center
;
margin
-
bottom
:
25
px
;
">
<p>Tetapan Kategori FA (Fixed Allowance)</p>
<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>
</div>
<div class="
ui
secondary
segment
">
@if(session('success'))
<div class="
ui
segment
">
<div class="
ui
positive
message
">
<div style="
display
:
flex
;
justify
-
content
:
space
-
between
;
align
-
items
:
center
;
margin
-
bottom
:
20
px
;
">
<i class="
close
icon
"></i>
<p style="
font
-
weight
:
bold
;
margin
:
0
;
">Senarai Kategori FA</p>
<div class="
header
">Kejayaan</div>
<a href="
{{
route
(
'mileage::fa-category.create'
)
}}
" class="
ui
button
primary
small
">
<p>{{ session('success') }}</p>
+ Tambah Kategori FA
</div>
</a>
@endif
<!-- 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
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>
</div>
<table class="
ui
table
celled
" id="
fa
-
category
-
table
" style="
width
:
100
%
;
">
<!-- Main Data Table -->
<thead>
<table class="
ui
single
line
table
" id="
fa
-
category
-
table
" style="
border
:
none
;
margin
:
0
;
">
<thead>
<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 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
" style="
border
-
radius
:
3
px
;
font
-
weight
:
600
;
">Aktif</span>
@else
<span class="
ui
red
label
tiny
" style="
border
-
radius
:
3
px
;
font
-
weight
:
600
;
">Tidak Aktif</span>
@endif
</td>
<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
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>
<tr>
<th width="
80
px
">ID</th>
<td colspan="
4
" class="
center
aligned
" style="
padding
:
30
px
;
color
:
#888;">Tiada rekod kategori FA.</td>
<th>Kategori FA</th>
<th width="
120
px
">Status</th>
<th width="
150
px
">Tindakan</th>
</
tr
>
</
tr
>
</thead>
@
endforelse
<tbody>
</
tbody
>
@forelse(
$faCategories
as
$item
)
</
table
>
<tr>
<td>{{
$item->id
}}</td>
<!--
Table
Footer
Pagination
Bar
-->
<td>{{
$item->fa_category
}}</td>
<
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;"
>
<td>
<
div
>
@if(
$item->status
== 1)
Showing
1
-
{{
count
(
$faCategories
)
}}
from
{{
count
(
$faCategories
)
}}
<span class="
ui
green
label
tiny
">Aktif</span>
</
div
>
@else
<
div
class
="
ui
pagination
menu
mini
" style="
margin
:
0
;
box
-
shadow
:
none
;
border
:
1
px
solid
#e0e0e0;">
<span class="
ui
red
label
tiny
">Tidak Aktif</span>
<
a
class
="
item
disabled
"><i class="
chevron
left
icon
"></i></a>
@endif
<a class="
active
item
">1</a>
</td>
<a class="
item
disabled
"><i class="
chevron
right
icon
"></i></a>
<td>
</div>
<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>
<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>
</form>
</div>
</td>
</tr>
@empty
<tr>
<td colspan="
4
" class="
center
aligned
">Tiada rekod kategori FA.</td>
</tr>
@endforelse
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
@endsection
@endsection
\ No newline at end of file
packages/portal/mileage/resources/views/lkpmileagetask/index.blade.php
View file @
a1423c92
@
extends
(
'ui::layouts.app'
)
@
extends
(
'ui::layouts.app'
)
@
section
(
'content'
)
@
section
(
'content'
)
@
if
(
session
(
'success'
))
<
div
class
="
ui
container
" style="
width
:
100
%
;
">
<
div
class
="
ui
positive
message
">
<!-- Outer Segment Card -->
<i class="
close
icon
"></i>
<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="
header
">Kejayaan</div>
<p>{{ session('success') }}</p>
<!--
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>
</div>
@endif
<div class="
ui
segments
">
<!-- Header Row with Title and Buttons -->
<div class="
ui
segment
">
<div style="
display
:
flex
;
justify
-
content
:
space
-
between
;
align
-
items
:
center
;
margin
-
bottom
:
25
px
;
">
<p>Tetapan Tugasan Mileage (Audit Task)</p>
<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>
</div>
<div class="
ui
secondary
segment
">
@if (session('success'))
<div class="
ui
segment
">
<div class="
ui
positive
message
">
<div style="
display
:
flex
;
justify
-
content
:
space
-
between
;
align
-
items
:
center
;
margin
-
bottom
:
20
px
;
">
<i class="
close
icon
"></i>
<p style="
font
-
weight
:
bold
;
margin
:
0
;
">Senarai Tugasan Mileage</p>
<div class="
header
">Kejayaan</div>
<a href="
{{
route
(
'mileage::mileage-task.create'
)
}}
" class="
ui
button
primary
small
">
<p>{{ session('success') }}</p>
+ Tambah Tugasan
</div>
</a>
@endif
<!-- 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
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>
</div>
<table class="
ui
table
celled
" id="
mileage
-
task
-
table
" style="
width
:
100
%
;
">
<!-- Main Data Table -->
<thead>
<table class="
ui
single
line
table
" id="
mileage
-
task
-
table
" style="
border
:
none
;
margin
:
0
;
">
<thead>
<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 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
" style="
font
-
weight
:
500
;
border
-
radius
:
4
px
;
padding
:
6
px
12
px
;
">
Aktif
</span>
@else
<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
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
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>
<tr>
<th width="
80
px
">ID</th>
<td colspan="
4
" class="
center
aligned
" style="
padding
:
30
px
;
color
:
#888;">Tiada rekod tugasan.</td>
<th>Penerangan Tugasan (Description)</th>
<th width="
120
px
">Status</th>
<th width="
150
px
">Tindakan</th>
</
tr
>
</
tr
>
</thead>
@
endforelse
<tbody>
</
tbody
>
@forelse(
$tasks
as
$item
)
</
table
>
<tr>
<td>{{
$item->id
}}</td>
<!--
Table
Footer
Pagination
Bar
-->
<td>{{
$item->description
}}</td>
<
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;"
>
<td>
<
div
>
@if(
$item->status
== 1)
Showing
1
-
{{
count
(
$tasks
)
}}
from
{{
count
(
$tasks
)
}}
<span class="
ui
green
label
tiny
">Aktif</span>
</
div
>
@else
<
div
class
="
ui
pagination
menu
mini
" style="
margin
:
0
;
box
-
shadow
:
none
;
border
:
1
px
solid
#e0e0e0;">
<span class="
ui
red
label
tiny
">Tidak Aktif</span>
<
a
class
="
item
disabled
"><i class="
chevron
left
icon
"></i></a>
@endif
<a class="
active
item
">1</a>
</td>
<a class="
item
disabled
"><i class="
chevron
right
icon
"></i></a>
<td>
</div>
<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>
<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>
</form>
</div>
</td>
</tr>
@empty
<tr>
<td colspan="
4
" class="
center
aligned
">Tiada rekod tugasan.</td>
</tr>
@endforelse
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
@endsection
@endsection
\ No newline at end of file
packages/portal/mileage/resources/views/lkprate/index.blade.php
View file @
a1423c92
@
extends
(
'ui::layouts.app'
)
@
extends
(
'ui::layouts.app'
)
@
section
(
'content'
)
@
section
(
'content'
)
<
div
class
="
ui
container
">
<
div
class
="
ui
container
" style="
width
:
100
%
;
">
<h2 class="
ui
header
">Senarai Kadar Mileage</h2>
<!-- 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 Kadar Mileage (LKP Rate)
</div>
<div class="
ui
segment
">
<!-- Header Row with Title and Buttons -->
@if(session('success'))
<div style="
display
:
flex
;
justify
-
content
:
space
-
between
;
align
-
items
:
center
;
margin
-
bottom
:
25
px
;
">
<div class="
ui
positive
message
">
<h1 class="
ui
header
" style="
margin
:
0
;
font
-
size
:
2
rem
;
font
-
weight
:
700
;
color
:
#222;">
<p>{{ session('success') }}</p>
Senarai
Kadar
Mileage
</div>
</
h1
>
@endif
<
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>
<div class="
ui
grid
middle
aligned
">
@if (session('success'))
<div class="
eight
wide
column
">
<div class="
ui
positive
message
">
<h3 class="
ui
header
" style="
margin
:
0
;
">Senarai Kadar Mileage (LKP Rate)</h3>
<i class="
close
icon
"></i>
</div>
<div class="
header
">Kejayaan</div>
<div class="
eight
wide
column
text
right
" style="
text
-
align
:
right
;
">
<p>{{ session('success') }}</p>
<a href="
{{
route
(
'mileage::rate.create'
)
}}
" class="
ui
button
primary
small
">+ Tambah Kadar</a>
</div>
</div>
</div>
@endif
<div class="
ui
divider
"></div>
<!-- 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>
<table class="
ui
table
celled
striped
">
<!-- Main Data Table -->
<table class="
ui
single
line
table
" style="
border
:
none
;
margin
:
0
;
">
<thead>
<thead>
<tr>
<tr
style="
background
-
color
:
#f9fafb; color: #666; font-size: 0.85rem; text-transform: uppercase;"
>
<th style="
width
:
80
px
;
">ID</th>
<
th
style
=
"width: 8
%; padding-left: 2
0px;"
>
ID
</
th
>
<
th
>
JENIS
KENDERAAN
</
th
>
<
th
>
JENIS
KENDERAAN
</
th
>
<th>KM DARI</th>
<
th
style
=
"width: 15%;"
>
KM
DARI
</
th
>
<th>KM HINGGA</th>
<
th
style
=
"width: 15%;"
>
KM
HINGGA
</
th
>
<th>KADAR (RM)</th>
<
th
style
=
"width: 15%;"
>
KADAR
(
RM
)
</
th
>
<th
style="
width
:
150
px
;
" class="
center
aligned
">TINDAKAN</th>
<
th
class
="
center
aligned
" style="
width
:
22
%
;
">TINDAKAN</th>
</tr>
</tr>
</thead>
</thead>
<tbody>
<tbody>
@forelse(
$rates
as
$item
)
@forelse(
$rates
as
$item
)
<tr>
<tr>
<td>{{
$item->id
}}</td>
<td style="
padding
-
left
:
20
px
;
color
:
#666;">{{ $item->id }}</td>
<td>{{
$item->jenisKenderaan
->keterangan ??
$item->jenisKenderaan
->nama ??
$item->jenisKenderaan
->name ?? 'N/A' }}</td>
<
td
style
=
"font-weight: 600; color: #333;"
>
<td>{{
$item->km_from
}}</td>
{{
$item
->
jenisKenderaan
->
keterangan
??
$item
->
jenisKenderaan
->
nama
??
$item
->
jenisKenderaan
->
name
??
'N/A'
}}
<td>{{
$item->km_to
}}</td>
</
td
>
<td>{{ number_format(
$item->rate
, 2) }}</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
">
<
td
class
="
center
aligned
">
<a href="
{{
route
(
'mileage::rate.show'
,
$item
->
id
)
}}
" class="
ui
button
basic
compact
icon
" title="
Papar
">
<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>
<i class="
eye
icon
"></i>
Lihat
</a>
</a>
<a href="
{{
route
(
'mileage::rate.edit'
,
$item
->
id
)
}}
" class="
ui
button
primary
compact
icon
" title="
Kemaskini
">
<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>
<
i
class
="
edit
icon
"></i>
Kemaskini
</a>
</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
@csrf
@method('DELETE')
@method('DELETE')
<button
class="
ui
button
red
compact
icon
" title="
Padam
" onclick="
return
confirm
(
'Padam rekod ini?'
)
">
<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>
<i class="
trash
icon
"></i>
Padam
</button>
</button>
</form>
</form>
</td>
</td>
</tr>
</tr>
@empty
@empty
<tr>
<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
>
</
tr
>
@
endforelse
@
endforelse
</
tbody
>
</
tbody
>
</
table
>
</
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>
</div>
</div>
@endsection
@endsection
\ No newline at end of file
packages/portal/mileage/resources/views/lkpstatus/index.blade.php
View file @
a1423c92
...
@@ -10,14 +10,19 @@
...
@@ -10,14 +10,19 @@
Senarai Status Mileage
Senarai Status Mileage
</div>
</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
;
">
<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;">
<h1 class="
ui
header
" style="
margin
:
0
;
font
-
size
:
2
rem
;
font
-
weight
:
700
;
color
:
#222;">
Senarai
Status
Mileage
Senarai
Status
Mileage
</
h1
>
</
h1
>
<
a
href
=
"{{ route('mileage::lkpstatus.create') }}"
class
="
ui
primary
button
" style="
border
-
radius
:
4
px
;
padding
:
10
px
20
px
;
">
<
div
>
Permohonan Baharu
<
a
href
=
"{{ route('mileage::mileage.tetapan') }}"
class
="
ui
button
" style="
border
-
radius
:
4
px
;
padding
:
10
px
20
px
;
margin
-
right
:
8
px
;
">
</a>
<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
;
">
<i class="
plus
icon
"></i> Permohonan Baharu
</a>
</div>
</div>
</div>
@if (session('success'))
@if (session('success'))
...
...
packages/portal/mileage/resources/views/tetapan/index.blade.php
View file @
a1423c92
...
@@ -76,18 +76,6 @@
...
@@ -76,18 +76,6 @@
</
div
>
</
div
>
</
a
>
</
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
>
</
div
>
</
div
>
</
div
>
...
...
packages/portal/mileage/routes/web.php
View file @
a1423c92
...
@@ -84,14 +84,6 @@ function () {
...
@@ -84,14 +84,6 @@ function () {
// Tetapan
// Tetapan
Route
::
get
(
'tetapan'
,
[
'uses'
=>
'TetapanController@index'
,
'as'
=>
'mileage.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
// Jenis Kenderaan
Route
::
get
(
'jenis-kenderaan'
,
[
JenisKenderaanController
::
class
,
'index'
])
->
name
(
'jenis-kenderaan.index'
);
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'
)
@
extends
(
'ui::layouts.app'
)
@
section
(
'content'
)
@
section
(
'content'
)
@
if
(
session
(
'success'
))
<
div
class
="
ui
container
" style="
width
:
100
%
;
">
<
div
class
="
ui
positive
message
">
<!-- Outer Segment Card -->
<i class="
close
icon
"></i>
<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="
header
">Kejayaan</div>
<p>{{ session('success') }}</p>
<!--
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>
</div>
@endif
<div class="
ui
segments
">
<!-- Header Row with Title and Buttons -->
<div class="
ui
segment
">
<div style="
display
:
flex
;
justify
-
content
:
space
-
between
;
align
-
items
:
center
;
margin
-
bottom
:
25
px
;
">
<p>Senarai Tugasan OT</p>
<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>
</div>
<div class="
ui
secondary
segment
">
@if (session('success'))
<div class="
ui
segment
">
<div class="
ui
positive
message
">
<div style="
display
:
flex
;
justify
-
content
:
space
-
between
;
align
-
items
:
center
;
margin
-
bottom
:
20
px
;
">
<i class="
close
icon
"></i>
<p style="
font
-
weight
:
bold
;
margin
:
0
;
">Senarai Tugasan OT (LKP OT Task)</p>
<div class="
header
">Kejayaan</div>
<a href="
{{
route
(
'overtime::ot-task.create'
)
}}
" class="
ui
button
primary
small
">
<p>{{ session('success') }}</p>
+ Tambah Tugasan
</div>
</a>
@endif
<!-- 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
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>
</div>
<table class="
ui
table
celled
" id="
ot
-
task
-
table
" style="
width
:
100
%
;
">
<!-- Main Data Table -->
<thead>
<table class="
ui
single
line
table
" id="
ot
-
task
-
table
" style="
border
:
none
;
margin
:
0
;
">
<thead>
<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
$index
=>
$task
)
<tr>
<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
" style="
font
-
weight
:
500
;
border
-
radius
:
4
px
;
padding
:
6
px
12
px
;
">
Aktif
</span>
@else
<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
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
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>
</td>
</tr>
@empty
<tr>
<tr>
<th>Nama Tugasan</th>
<td colspan="
5
" class="
center
aligned
" style="
padding
:
30
px
;
color
:
#888;">Tiada rekod tugasan OT.</td>
<th>Kod Tugasan</th>
<th>Status</th>
<th width="
150
px
">Tindakan</th>
</
tr
>
</
tr
>
</thead>
@
endforelse
<tbody>
</
tbody
>
@forelse(
$tasks
as
$task
)
</
table
>
<tr>
<td>{{
$task->task_name
}}</td>
<!--
Table
Footer
Pagination
Bar
-->
<td>{{
$task->task_code
}}</td>
<
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;"
>
<td>
<
div
>
@if(
$task->is_active
)
Showing
1
-
{{
count
(
$tasks
)
}}
from
{{
count
(
$tasks
)
}}
<span class="
ui
green
label
small
">Aktif</span>
</
div
>
@else
<
div
class
="
ui
pagination
menu
mini
" style="
margin
:
0
;
box
-
shadow
:
none
;
border
:
1
px
solid
#e0e0e0;">
<span class="
ui
red
label
small
">Tidak Aktif</span>
<
a
class
="
item
disabled
"><i class="
chevron
left
icon
"></i></a>
@endif
<a class="
active
item
">1</a>
</td>
<a class="
item
disabled
"><i class="
chevron
right
icon
"></i></a>
<td>
</div>
<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>
<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>
</form>
</div>
</td>
</tr>
@empty
<tr>
<td colspan="
4
" class="
center
aligned
">Tiada rekod tugasan OT.</td>
</tr>
@endforelse
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
@endsection
@endsection
\ No newline at end of file
packages/portal/overtime/resources/views/lkpstatus/index.blade.php
View file @
a1423c92
...
@@ -5,19 +5,24 @@
...
@@ -5,19 +5,24 @@
<!-- Outer Segment Card -->
<!-- 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
" 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
;
">
<
div
class
="
ui
teal
ribbon
label
" style="
font
-
size
:
1
rem
;
padding
:
8
px
16
px
;
margin
-
bottom
:
20
px
;
">
Senarai Status Overtime
Senarai Status Overtime
</div>
</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
;
">
<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;">
<h1 class="
ui
header
" style="
margin
:
0
;
font
-
size
:
2
rem
;
font
-
weight
:
700
;
color
:
#222;">
Senarai
Status
Overtime
Senarai
Status
Overtime
</
h1
>
</
h1
>
<
a
href
=
"{{ route('overtime::lkpstatus.create') }}"
class
="
ui
primary
button
" style="
border
-
radius
:
4
px
;
padding
:
10
px
20
px
;
">
<
div
>
Permohonan Baharu
<
a
href
=
"{{ route('overtime::overtime.tetapan') }}"
class
="
ui
button
" style="
border
-
radius
:
4
px
;
padding
:
10
px
20
px
;
margin
-
right
:
8
px
;
">
</a>
<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
;
">
<i class="
plus
icon
"></i> Permohonan Baharu
</a>
</div>
</div>
</div>
@if (session('success'))
@if (session('success'))
...
...
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