Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
3
3f-timesheet
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
dockers
3f-timesheet
Commits
c8ce83fb
Commit
c8ce83fb
authored
Sep 19, 2022
by
hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes
parent
8e24e280
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
527 additions
and
432 deletions
+527
-432
packages/portal/timesheet/resources/views/dashboard/dashboardstaff.blade.php
+113
-16
packages/portal/timesheet/resources/views/form/notelist.blade.php
+50
-50
packages/portal/timesheet/resources/views/form/penambahannote.blade.php
+23
-22
packages/portal/timesheet/resources/views/kalendar/kalendar.blade.php
+27
-26
packages/portal/timesheet/resources/views/maintenance/editPeranan.blade.php
+16
-14
packages/portal/timesheet/resources/views/maintenance/editProjectTeam.blade.php
+26
-20
packages/portal/timesheet/resources/views/maintenance/editoverhead.blade.php
+24
-18
packages/portal/timesheet/resources/views/maintenance/penambahanOverhead.blade.php
+15
-14
packages/portal/timesheet/resources/views/maintenance/penambahanPeranan.blade.php
+15
-14
packages/portal/timesheet/resources/views/maintenance/penambahanProject.blade.php
+27
-26
packages/portal/timesheet/resources/views/maintenance/penambahanProjectTeam.blade.php
+39
-39
packages/portal/timesheet/resources/views/maintenance/senaraiOverhead.blade.php
+29
-28
packages/portal/timesheet/resources/views/maintenance/senaraiPeranan.blade.php
+22
-24
packages/portal/timesheet/resources/views/maintenance/senaraiProject.blade.php
+38
-40
packages/portal/timesheet/resources/views/maintenance/senaraiProjectTeam.blade.php
+34
-55
packages/portal/timesheet/resources/views/maintenance/updateProject.blade.php
+25
-24
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
+4
-2
No files found.
packages/portal/timesheet/resources/views/dashboard/dashboardstaff.blade.php
View file @
c8ce83fb
@extends('ui::layouts.app')
@section('content')
<?php
$admin
=
count
(
$staffs
->
where
(
'fk_lkp_department'
,
1
));
$tms
=
count
(
$staffs
->
where
(
'fk_lkp_department'
,
2
));
$pss
=
count
(
$staffs
->
where
(
'fk_lkp_department'
,
3
));
$pms
=
count
(
$staffs
->
where
(
'fk_lkp_department'
,
4
));
$pcs
=
count
(
$staffs
->
where
(
'fk_lkp_department'
,
5
));
$spd
=
count
(
$staffs
->
where
(
'fk_lkp_department'
,
6
));
$bdd
=
count
(
$staffs
->
where
(
'fk_lkp_department'
,
7
));
// dd($data);
$dataPoints
=
array
(
array
(
"label"
=>
"ADMIN"
,
"y"
=>
$admin
),
array
(
"label"
=>
"TMS"
,
"y"
=>
$tms
),
array
(
"label"
=>
"PSS"
,
"y"
=>
$pss
),
array
(
"label"
=>
"PMS"
,
"y"
=>
$pms
),
array
(
"label"
=>
"PCS"
,
"y"
=>
$pcs
),
array
(
"label"
=>
"SPD"
,
"y"
=>
$spd
),
array
(
"label"
=>
"BDD"
,
"y"
=>
$bdd
)
);
?>
<!-- <div class="ui segment">
<div class="row">
<div class="col">
<canvas id="myChart"></canvas>
</div>
</div>
</div>
<div class="ui segment">
<div class="row">
<div id="chartContainer" style="height: 370px; width: 100%;"></div>
</div>
</div> -->
<div
class=
"ui segment"
>
<!-- <a class="ui blue left ribbon label">Welcome Back</a>
<br>
...
...
@@ -40,23 +77,23 @@
<table
class=
"ui unstackable celled table"
>
<thead>
<tr>
<th>Year</th>
<th>Month</th>
<th>Phase</th>
<th>Status</th>
<th>Action</th>
<th>Submission Date</th>
<th>Verified Date</th>
<th>Approval Date</th>
<th
class=
"single line"
>
Year
</th>
<th
class=
"single line"
>
Month
</th>
<th
class=
"single line"
>
Phase
</th>
<th
class=
"single line"
>
Status
</th>
<th
class=
"single line"
>
Action
</th>
<th
class=
"single line"
>
Submission Date
</th>
<th
class=
"single line"
>
Verified Date
</th>
<th
class=
"single line"
>
Approval Date
</th>
</tr>
</thead>
<tbody>
@foreach($timesheet as $key => $value)
<tr>
<td>{{ data_get(
$value
,'tm_year') }}</td>
<td>{{ data_get(
$value
,'tm_month') }}</td>
<td>{{ data_get(
$value
,'tm_phase') }}</td>
<td>
<td
class=
"single line"
>
{{ data_get($value,'tm_year') }}
</td>
<td
class=
"single line"
>
{{ data_get($value,'tm_month') }}
</td>
<td
class=
"single line"
>
{{ data_get($value,'tm_phase') }}
</td>
<td
class=
"single line"
>
@if($value->tm_timesheet_master_sts == 1) Draft
@elseif($value->tm_timesheet_master_sts == 2) Submitted
@elseif($value->tm_timesheet_master_sts == 3) Verified by HOD/HOU
...
...
@@ -66,7 +103,7 @@
@elseif($value->tm_timesheet_master_sts == 7) Rejected by BOD
@endif
</td>
<td>
<td
class=
"single line"
>
@if($value->tm_timesheet_master_sts == 1) Submit after timesheet completion
@elseif($value->tm_timesheet_master_sts == 2) Need to verified by HOD
@elseif($value->tm_timesheet_master_sts == 3) Need to approved by BOD
...
...
@@ -76,9 +113,9 @@
@elseif($value->tm_timesheet_master_sts == 7) Revised the timesheet
@endif
</td>
<td>{{ data_get(
$value
,'tm_submission_at') }}</td>
<td>{{ data_get(
$value
,'tm_verified_at') }}</td>
<td>{{ data_get(
$value
,'tm_approved_at') }}</td>
<td
class=
"single line"
>
{{ data_get($value,'tm_submission_at') }}
</td>
<td
class=
"single line"
>
{{ data_get($value,'tm_verified_at') }}
</td>
<td
class=
"single line"
>
{{ data_get($value,'tm_approved_at') }}
</td>
</tr>
@endforeach
</tbody>
...
...
@@ -87,3 +124,62 @@
</div>
@endsection
@push('script')
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.4/Chart.js"
></script>
<script>
const
data
=
{
labels
:
[
'Admin'
,
'TMS'
,
'PSS'
],
datasets
:
[{
label
:
'My First Dataset'
,
data
:
[
100
,
150
,
200
],
backgroundColor
:
[
'rgb(255, 99, 132)'
,
'rgb(54, 162, 235)'
,
'rgb(255, 205, 86)'
],
hoverOffset
:
4
}]
};
new
Chart
(
"myChart"
,
{
type
:
"doughnut"
,
data
:
data
,
});
</script>
<script>
window
.
onload
=
function
()
{
var
chart
=
new
CanvasJS
.
Chart
(
"chartContainer"
,
{
animationEnabled
:
true
,
exportEnabled
:
true
,
title
:{
text
:
"Percentage of 3F Staffs"
},
subtitles
:
[{
text
:
"--------"
}],
data
:
[{
type
:
"pie"
,
showInLegend
:
"true"
,
legendText
:
"{label}"
,
indexLabelFontSize
:
16
,
indexLabel
:
"{label} - #percent%"
,
yValueFormatString
:
"#,##"
,
dataPoints
:
<?php
echo
json_encode
(
$dataPoints
,
JSON_NUMERIC_CHECK
);
?>
}]
});
chart
.
render
();
}
</script>
<script
src=
"https://canvasjs.com/assets/script/canvasjs.min.js"
></script>
@endpush
\ No newline at end of file
packages/portal/timesheet/resources/views/form/notelist.blade.php
View file @
c8ce83fb
...
...
@@ -3,69 +3,69 @@
@
section
(
'content'
)
<
div
class
="
ui
tiny
orange
modal
uploadmodal
">
<div class="
header
">
Upload Attachment
<div class="
header
">
Upload Attachment
</div>
<div class="
content
">
<form class="
ui
form
" action="
/
action
/
upload
" method="
POST
" enctype="
multipart
/
form
-
data
">
{
{csrf_field()}
}
<input type="
hidden
" name="
id
" value="
{{
$fk_tm_id
}}
">
<div class="
field
">
<label for="
title
">File Name</label>
<input type="
text
" name="
filename
">
</div>
<div class="
field
">
<label>Upload file</label>
<input type="
file
" name="
attachment
" id="
uploadfile
" style="" accept="
.
xls
,
.
xlsx
,
.
pdf
">
</div>
<button class="
ui
blue
button
" type="
submit
">Upload</button>
</form>
</div>
<div class="
content
">
<form class="
ui
form
" action="
/
action
/
upload
" method="
POST
" enctype="
multipart
/
form
-
data
">
{
{csrf_field()}
}
<input type="
hidden
" name="
id
" value="
{{
$fk_tm_id
}}
">
<div class="
field
">
<label for="
title
">File Name</label>
<input type="
text
" name="
filename
">
</div>
<div class="
field
">
<label>Upload file</label>
<input type="
file
" name="
attachment
" id="
uploadfile
" style="" accept="
.
xls
,
.
xlsx
,
.
pdf
">
</div>
<button class="
ui
blue
button
" type="
submit
">Upload</button>
</form>
</div>
</div>
<div class="
ui
unstackable
segment
">
<div class="
ui
unstackable
segment
">
<a class="
ui
blue
left
ribbon
label
">Senarai Notes</a>
<br><br>
@if(data_get(
$staff
,'fk_lkp_department') == 7)
<button class="
right
floated
aligned
ui
olive
compact
labeled
icon
button
" id="
uploadmodal
">
<i class="
file
icon
"></i>
Upload File
</button>
@endif
<a href="
{{
route
(
'timesheet::form.penambahannote'
)
}}
" class="
right
floated
aligned
ui
orange
compact
labeled
icon
button
">
@if(data_get(
$staff
,'fk_lkp_department') == 7)
<button class="
right
floated
aligned
ui
olive
compact
labeled
icon
button
" id="
uploadmodal
">
<i class="
file
icon
"></i>
Upload File
</button>
@endif
<a href="
{{
route
(
'timesheet::form.penambahannote'
)
}}
" class="
right
floated
aligned
ui
orange
compact
labeled
icon
button
">
<i class="
plus
icon
"></i>Add New Notes
</a>
</a>
<button class="
center
aligned
ui
purple
compact
labeled
icon
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
form
.
overheadForm
', ['
phase
' => $phase, '
month
' => $month]) }}'
;
">
<i class="
angle
double
left
icon
"></i>
Overhead Form
<i class="
angle
double
left
icon
"></i>
Overhead Form
</button>
<button class="
center
aligned
ui
pink
compact
right
labeled
icon
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
dashboard
.
timesheetViewer
', ['
phase
' => $phase, '
month
' => $month, '
year
' => $year]) }}'
;
">
<i class="
angle
double
right
icon
"></i>
Timesheet Viewer
<i class="
angle
double
right
icon
"></i>
Timesheet Viewer
</button>
<table class="
ui
celled
padded
table
">
<thead>
<tr>
<th style="
width
:
3
%
;
">No</th>
<th style="
width
:
10
%
;
">Date</th>
<th style="
width
:
20
%
;
">Task</th>
<th>Description</th>
</tr>
</thead>
<tbody>
@foreach(
$notes
as
$key
=>
$value
)
<tr>
<td>
{
{$key+1}
}
</td>
<td>{{ data_get(
$value
,'td_date') }} </td>
<td>{{ data_get(
$value
,'td_overhead_desc') }} </td>
<td>{{ data_get(
$value
,'td_overhead_note') }} </td>
</tr>
@endforeach
</tbody>
<thead>
<tr>
<th style="
width
:
3
%
;
">No</th>
<th style="
width
:
10
%
;
">Date</th>
<th style="
width
:
20
%
;
">Task</th>
<th>Description</th>
</tr>
</thead>
<tbody>
@foreach(
$notes
as
$key
=>
$value
)
<tr>
<td>
{
{$key+1}
}
</td>
<td>{{ data_get(
$value
,'td_date') }} </td>
<td>{{ data_get(
$value
,'td_overhead_desc') }} </td>
<td>{{ data_get(
$value
,'td_overhead_note') }} </td>
</tr>
@endforeach
</tbody>
</table>
</div>
...
...
packages/portal/timesheet/resources/views/form/penambahannote.blade.php
View file @
c8ce83fb
@
extends
(
'ui::layouts.app'
)
@
section
(
'content'
)
<
div
class
="
ui
segment
">
<a class="
ui
blue
left
ribbon
label
">Penambahan Note</a>
<br><br>
<form class="
ui
form
" action="
{{
route
(
'timesheet::form.addnote'
)
}}
" method="
POST
">
{
{csrf_field()}
}
<
div
class
="
ui
segment
">
<a class="
ui
blue
left
ribbon
label
">Penambahan Note</a>
<br><br>
<form class="
ui
form
" action="
{{
route
(
'timesheet::form.addnote'
)
}}
" method="
POST
">
{
{csrf_field()}
}
<div class="
two
fields
">
<div class="
three
wide
field
">
<label>Date</label>
<input type="
Date
" name="
date
">
</div>
<div class="
three
wide
field
">
<label>Task</label>
<select name="
task
" class="
ui
fluid
dropdown
">
@foreach(
$task
as
$key
=>
$value
)
<option value="
{{
$value
->
id
}}
">
{
{data_get($value,'o_overhead_desc')}
}
</option>
@endforeach
<option value="
0
">Others</option>
</select>
</div>
<div class="
three
wide
field
">
<label>Date</label>
<input type="
Date
" name="
date
">
</div>
<div class="
three
wide
field
">
<label>Task</label>
<select name="
task
" class="
ui
fluid
dropdown
">
@foreach(
$task
as
$key
=>
$value
)
<option value="
{{
$value
->
id
}}
">
{
{data_get($value,'o_overhead_desc')}
}
</option>
@endforeach
<option value="
0
">Others</option>
</select>
</div>
</div>
<div class="
field
">
<label>Description</label>
<textarea name="
description
" cols="
30
" rows="
10
"></textarea>
<label>Description</label>
<textarea name="
description
" cols="
30
" rows="
10
"></textarea>
</div>
<button class="
ui
button
" type="
submit
">Submit</button>
</form>
</div>
</form>
</div>
@endsection
\ No newline at end of file
packages/portal/timesheet/resources/views/kalendar/kalendar.blade.php
View file @
c8ce83fb
...
...
@@ -6,28 +6,29 @@
<a class="
ui
blue
left
ribbon
label
">Kalendar</a>
<br>
<br>
<div class="
column
sixteen
wide
">
<div id='calendar'></div>
</div>
<div class="
column
sixteen
wide
">
<div id='calendar'></div>
</div>
</div>
<div class="
ui
small
modal
">
<i class="
close
icon
"></i>
<div class="
header
">
Project Detail's
</div>
<div class="
content
">
</div>
<div class="
actions
">
<div class="
ui
black
deny
button
">
Cancel
<i class="
close
icon
"></i>
<div class="
header
">
Project Detail's
</div>
<div class="
content
">
</div>
<div class="
ui
positive
right
labeled
icon
button
">
Save
<i class="
ui
save
outline
icon
"></i>
<div class="
actions
">
<div class="
ui
black
deny
button
">
Cancel
</div>
<div class="
ui
positive
right
labeled
icon
button
">
Save
<i class="
ui
save
outline
icon
"></i>
</div>
</div>
</div>
</div>
@endsection
...
...
@@ -36,17 +37,17 @@
<script>
document.addEventListener('DOMContentLoaded', function() {
var calendarEl = document.getElementById('calendar');
document.addEventListener('DOMContentLoaded', function() {
var calendarEl = document.getElementById('calendar');
var calendar = new FullCalendar.Calendar(calendarEl, {
eventClick: function(info) {
var eventObj = info.event;
var calendar = new FullCalendar.Calendar(calendarEl, {
eventClick: function(info) {
var eventObj = info.event;
if (eventObj.url) {
alert(
'Clicked ' + eventObj.title + '.
\n
' +
'Will open ' + eventObj.url + ' in a new tab'
if (eventObj.url) {
alert(
'Clicked ' + eventObj.title + '.
\n
' +
'Will open ' + eventObj.url + ' in a new tab'
);
window.open(eventObj.url);
...
...
packages/portal/timesheet/resources/views/maintenance/editPeranan.blade.php
View file @
c8ce83fb
@
extends
(
'ui::layouts.app'
)
@
section
(
'content'
)
<
div
class
="
ui
segment
">
<a class="
ui
blue
left
ribbon
label
">Add New Role</a>
<br><br>
<form class="
ui
form
" action="
{{
route
(
'timesheet::maintenance.updaterole'
)}}
" method="
POST
">
<
div
class
="
ui
segment
">
<a class="
ui
blue
left
ribbon
label
">Add New Role</a>
<br><br>
<form class="
ui
form
" action="
{{
route
(
'timesheet::maintenance.updaterole'
)}}
" method="
POST
">
{
{csrf_field()}
}
<input type="
hidden
" name="
id
" value="
{{
data_get
(
$role
,
'id'
)}}
">
<div class="
field
">
<label>Role Description</label>
<input type="
text
" name="
role
" value="
{{
data_get
(
$role
,
'role'
)}}
">
<label>Role Description</label>
<input type="
text
" name="
role
" value="
{{
data_get
(
$role
,
'role'
)}}
">
</div>
<div class="
field
">
<label>Role Status</label>
<select name="
status
" class="
ui
fluid
dropdown
">
<option value="">
{
{$status}
}
</option>
<option value="
1
">Active</option>
<option value="
0
">Inactive</option>
</select>
<label>Role Status</label>
<select name="
status
" class="
ui
fluid
dropdown
">
<option value="">
{
{$status}
}
</option>
<option value="
1
">Active</option>
<option value="
0
">Inactive</option>
</select>
</div>
<button class="
ui
button
" type="
submit
">Update</button>
</form>
</div>
</form>
</div>
@endsection
\ No newline at end of file
packages/portal/timesheet/resources/views/maintenance/editProjectTeam.blade.php
View file @
c8ce83fb
@
extends
(
'ui::layouts.app'
)
@
section
(
'content'
)
<
div
class
="
ui
segment
">
<a class="
ui
blue
left
ribbon
label
">Edit Project Team</a>
<br><br>
<form class="
ui
form
" action="
{{
route
(
'timesheet::maintenance.updateprojectteam'
)}}
" method="
POST
">
<
div
class
="
ui
segment
">
<a class="
ui
blue
left
ribbon
label
">Edit Project Team</a>
<br><br>
<form class="
ui
form
" action="
{{
route
(
'timesheet::maintenance.updateprojectteam'
)}}
" method="
POST
">
{
{csrf_field()}
}
<input type="
hidden
" name="
id
" value="
{{
data_get
(
$team
,
'id'
)}}
">
<input type="
hidden
" name="
pid
" value="
{{
data_get
(
$team
,
'fk_project_id'
)}}
">
<div class="
field
">
<label for="
projectteam
">Project Team</label>
<input type="
text
" name="
projectteam
" value="
{{
data_get
(
$team
,
'pt_team'
)}}
" readonly="
readonly
">
<label for="
projectteam
">Project Team</label>
<input type="
text
" name="
projectteam
" value="
{{
data_get
(
$team
,
'pt_team'
)}}
" readonly="
readonly
">
</div>
<div class="
field
">
<label>Role</label>
<select name="
role
" class="
ui
fluid
dropdown
">
<option value="
{{
data_get
(
$team
,
'role_id'
)}}
">
{
{data_get($teamRole,'role')}
}
</option>
@foreach(
$role
as
$key
=>
$value
)
<option value="
{{
data_get
(
$value
,
'id'
)}}
">
{
{data_get($value,'role')}
}
</option>
@endforeach
</select>
<label>Role</label>
<select name="
role
" class="
ui
fluid
dropdown
">
<option value="
{{
data_get
(
$team
,
'role_id'
)}}
">
{
{data_get($teamRole,'role')}
}
</option>
@foreach(
$role
as
$key
=>
$value
)
<option value="
{{
data_get
(
$value
,
'id'
)}}
">
{
{data_get($value,'role')}
}
</option>
@endforeach
</select>
</div>
<div class="
field
">
<label>Project Team Status</label>
<select name="
status
" class="
ui
fluid
dropdown
">
<option value="
1
">Active</option>
<option value="
0
">Inactive</option>
</select>
<label>Project Team Status</label>
<select name="
status
" class="
ui
fluid
dropdown
">
<option value="
1
">Active</option>
<option value="
0
">Inactive</option>
</select>
</div>
<button class="
ui
blue
button
" type="
submit
">Update</button>
<button class="
ui
green
button
" type="
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
maintenance
.
senaraiProjectTeam
', ['
id
'=> $pid] ) }} '
;
">Back</button>
</form>
</div>
</form>
</div>
@endsection
\ No newline at end of file
packages/portal/timesheet/resources/views/maintenance/editoverhead.blade.php
View file @
c8ce83fb
...
...
@@ -2,23 +2,28 @@
@
section
(
'content'
)
<
div
class
="
ui
segment
">
<a class="
ui
blue
left
ribbon
label
">Edit Overhead</a>
<br><br>
<form class="
ui
form
" action="
{{
route
(
'timesheet::maintenance.updateoverhead'
)}}
" method="
POST
">
{
{csrf_field()}
}
<input type="
hidden
" name="
id
" value="
{{
data_get
(
$data
,
'id'
)}}
">
<div class="
field
">
<label>Overhead Description</label>
<input type="
text
" name="
description
" value="
{{
data_get
(
$data
,
'o_overhead_desc'
)
}}
">
</div>
<div class="
field
">
<label>Role Status</label>
<select name="
status
" class="
ui
fluid
dropdown
">
<option value="
1
">Active</option>
<option value="
0
">Inactive</option>
</select>
</div>
<button class="
ui
green
button
" type="
submit
">Update</button>
</form>
<a class="
ui
blue
left
ribbon
label
">Edit Overhead</a>
<br><br>
<form class="
ui
form
" action="
{{
route
(
'timesheet::maintenance.updateoverhead'
)}}
" method="
POST
">
{
{csrf_field()}
}
<input type="
hidden
" name="
id
" value="
{{
data_get
(
$data
,
'id'
)}}
">
<div class="
field
">
<label>Overhead Description</label>
<input type="
text
" name="
description
" value="
{{
data_get
(
$data
,
'o_overhead_desc'
)
}}
">
</div>
<div class="
field
">
<label>Role Status</label>
<select name="
status
" class="
ui
fluid
dropdown
">
<option value="
1
">Active</option>
<option value="
0
">Inactive</option>
</select>
</div>
<button class="
ui
green
button
" type="
submit
">Update</button>
</form>
</div>
@endsection
\ No newline at end of file
packages/portal/timesheet/resources/views/maintenance/penambahanOverhead.blade.php
View file @
c8ce83fb
@
extends
(
'ui::layouts.app'
)
@
section
(
'content'
)
<
div
class
="
ui
segment
">
<a class="
ui
blue
left
ribbon
label
">Add New Overhead Lookup</a>
<br><br>
<form class="
ui
form
" action="
{{
route
(
'timesheet::maintenance.addoverheadlookup'
)}}
" method="
POST
">
<
div
class
="
ui
segment
">
<a class="
ui
blue
left
ribbon
label
">Add New Overhead Lookup</a>
<br><br>
<form class="
ui
form
" action="
{{
route
(
'timesheet::maintenance.addoverheadlookup'
)}}
" method="
POST
">
{
{csrf_field()}
}
<div class="
field
">
<label>Overhead Lookup</label>
<input type="
text
" name="
overheadlookup
" placeholder="
Enter
new
lookup
overhead
">
<label>Overhead Lookup</label>
<input type="
text
" name="
overheadlookup
" placeholder="
Enter
new
lookup
overhead
">
</div>
<div class="
field
">
<label>Overhead Status</label>
<select name="
status
" class="
ui
fluid
dropdown
">
<option value="">Overhead Status</option>
<option value="
1
">Active</option>
<option value="
0
">Inactive</option>
</select>
<label>Overhead Status</label>
<select name="
status
" class="
ui
fluid
dropdown
">
<option value="">Overhead Status</option>
<option value="
1
">Active</option>
<option value="
0
">Inactive</option>
</select>
</div>
<button class="
ui
blue
button
" type="
submit
">Add</button>
</form>
</div>
</form>
</div>
@endsection
\ No newline at end of file
packages/portal/timesheet/resources/views/maintenance/penambahanPeranan.blade.php
View file @
c8ce83fb
@
extends
(
'ui::layouts.app'
)
@
section
(
'content'
)
<
div
class
="
ui
segment
">
<a class="
ui
blue
left
ribbon
label
">Add New Role</a>
<br><br>
<form class="
ui
form
" action="
{{
route
(
'timesheet::maintenance.addrole'
)}}
" method="
POST
">
<
div
class
="
ui
segment
">
<a class="
ui
blue
left
ribbon
label
">Add New Role</a>
<br><br>
<form class="
ui
form
" action="
{{
route
(
'timesheet::maintenance.addrole'
)}}
" method="
POST
">
{
{csrf_field()}
}
<div class="
field
">
<label>Role Description</label>
<input type="
text
" name="
role
" placeholder="
Enter
new
role
">
<label>Role Description</label>
<input type="
text
" name="
role
" placeholder="
Enter
new
role
">
</div>
<div class="
field
">
<label>Role Status</label>
<select name="
status
" class="
ui
fluid
dropdown
">
<option value="">Role Status</option>
<option value="
1
">Active</option>
<option value="
0
">Inactive</option>
</select>
<label>Role Status</label>
<select name="
status
" class="
ui
fluid
dropdown
">
<option value="">Role Status</option>
<option value="
1
">Active</option>
<option value="
0
">Inactive</option>
</select>
</div>
<button class="
ui
button
" type="
submit
">Add</button>
</form>
</div>
</form>
</div>
@endsection
\ No newline at end of file
packages/portal/timesheet/resources/views/maintenance/penambahanProject.blade.php
View file @
c8ce83fb
@
extends
(
'ui::layouts.app'
)
@
section
(
'content'
)
<
div
class
="
ui
segment
">
<a class="
ui
blue
left
ribbon
label
">Add New Project</a>
<br><br>
<form class="
ui
form
" action="
{{
route
(
'timesheet::maintenance.addnewproject'
)}}
" method="
POST
">
<
div
class
="
ui
segment
">
<a class="
ui
blue
left
ribbon
label
">Add New Project</a>
<br><br>
<form class="
ui
form
" action="
{{
route
(
'timesheet::maintenance.addnewproject'
)}}
" method="
POST
">
{
{csrf_field()}
}
<div class="
two
fields
">
<div class="
five
wide
field
">
<label>Project Code</label>
<input type="
text
" name="
projectcode
" placeholder="
Project
Code
">
</div>
<div class="
five
wide
field
">
<label>Project Name</label>
<input type="
text
" name="
projectname
" placeholder="
Project
Name
">
</div>
<div class="
five
wide
field
">
<label>Project Code</label>
<input type="
text
" name="
projectcode
" placeholder="
Project
Code
">
</div>
<div class="
five
wide
field
">
<label>Project Name</label>
<input type="
text
" name="
projectname
" placeholder="
Project
Name
">
</div>
</div>
<div class="
field
">
<label>Project Manager</label>
<select name="
projectmanager
" class="
ui
fluid
dropdown
">
<option value="">Project Manager</option>
@foreach(
$pm
as
$key
=>
$value
)
<option value="
{{
data_get
(
$value
,
'staff_id'
)}}
">
{
{data_get($value,'fullname')}
}
</option>
@endforeach
</select>
<label>Project Manager</label>
<select name="
projectmanager
" class="
ui
fluid
dropdown
">
<option value="">Project Manager</option>
@foreach(
$pm
as
$key
=>
$value
)
<option value="
{{
data_get
(
$value
,
'staff_id'
)}}
">
{
{data_get($value,'fullname')}
}
</option>
@endforeach
</select>
</div>
<div class="
field
">
<label>Project Status</label>
<select name="
status
" class="
ui
fluid
dropdown
">
<option value="
1
">Active</option>
<option value="
0
">Inactive</option>
</select>
<label>Project Status</label>
<select name="
status
" class="
ui
fluid
dropdown
">
<option value="
1
">Active</option>
<option value="
0
">Inactive</option>
</select>
</div>
<button class="
ui
blue
button
" type="
submit
">Add</button>
<button class="
ui
green
button
" type="
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
maintenance
.
senaraiProject
') }} '
;
">Back</button>
</form>
</div>
</form>
</div>
@endsection
\ No newline at end of file
packages/portal/timesheet/resources/views/maintenance/penambahanProjectTeam.blade.php
View file @
c8ce83fb
@
extends
(
'ui::layouts.app'
)
@
section
(
'content'
)
<
div
class
="
ui
segment
loading
-
screen
">
<a class="
ui
blue
left
ribbon
label
">Add New Project Team</a>
<br><br>
<form class="
ui
form
" action="
{{
route
(
'timesheet::maintenance.addprojectteam'
)}}
" method="
POST
">
<
div
class
="
ui
segment
loading
-
screen
">
<a class="
ui
blue
left
ribbon
label
">Add New Project Team</a>
<br><br>
<form class="
ui
form
" action="
{{
route
(
'timesheet::maintenance.addprojectteam'
)}}
" method="
POST
">
{
{csrf_field()}
}
<input type="
hidden
" name="
pid
" value="
{{
$pid
}}
">
<input type="
hidden
" name="
pcode
" value="
{{
data_get
(
$project
,
'p_project_code'
)
}}
">
<input type="
hidden
" name="
pname
" value="
{{
data_get
(
$project
,
'p_project_description'
)
}}
">
<div class="
field
">
<label>Project Code</label>
<input onselect="
myDepartment
()
" type="
text
" name="
projectcode
" placeholder="
Project
Code
" value="
{{
data_get
(
$project
,
'p_project_code'
)
}}
|
{{
data_get
(
$project
,
'p_project_description'
)
}}
" readonly="
readonly
">
<label>Project Code</label>
<input onselect="
myDepartment
()
" type="
text
" name="
projectcode
" placeholder="
Project
Code
" value="
{{
data_get
(
$project
,
'p_project_code'
)
}}
|
{{
data_get
(
$project
,
'p_project_description'
)
}}
" readonly="
readonly
">
</div>
<div class="
field
">
<label>Department</label>
<select onchange="
selectDepartment
(
value
);
" name="
department
" id="
department
" class="
ui
fluid
dropdown
">
<option value="">Department</option>
@foreach(
$departments
as
$key
=>
$department
)
<option value="
{{
data_get
(
$department
,
'id'
)}}
">
{
{data_get($department,'code')}
}
|
{
{data_get($department,'description')}
}
</option>
@endforeach
</select>
<label>Department</label>
<select onchange="
selectDepartment
(
value
);
" name="
department
" id="
department
" class="
ui
fluid
dropdown
">
<option value="">Department</option>
@foreach(
$departments
as
$key
=>
$department
)
<option value="
{{
data_get
(
$department
,
'id'
)}}
">
{
{data_get($department,'code')}
}
|
{
{data_get($department,'description')}
}
</option>
@endforeach
</select>
</div>
<div class="
field
">
<label>Staff Name</label>
<div class="
ui
fluid
multiple
search
selection
dropdown
">
<input type="
hidden
" name="
staffId
">
<i class="
dropdown
icon
"></i>
<div class="
default
text
">Staff Name</div>
<div class="
menu
" id="
divstaff
" name="
divstaff
">
@foreach(
$staffs
as
$key
=>
$staff
)
<div class="
item
" data-value="
{{
data_get
(
$staff
,
'id'
)}}
" data-text="
{{
data_get
(
$staff
,
'fullname'
)}}
">
{
{data_get($staff,'fullname')}
}
</div>
@endforeach
<label>Staff Name</label>
<div class="
ui
fluid
multiple
search
selection
dropdown
">
<input type="
hidden
" name="
staffId
">
<i class="
dropdown
icon
"></i>
<div class="
default
text
">Staff Name</div>
<div class="
menu
" id="
divstaff
" name="
divstaff
">
@foreach(
$staffs
as
$key
=>
$staff
)
<div class="
item
" data-value="
{{
data_get
(
$staff
,
'id'
)}}
" data-text="
{{
data_get
(
$staff
,
'fullname'
)}}
">
{
{data_get($staff,'fullname')}
}
</div>
@endforeach
</div>
</div>
</div>
</div>
<div class="
field
">
<label>Role</label>
<select name="
role
" class="
ui
fluid
dropdown
">
<option value="">Role</option>
@foreach(
$roles
as
$key
=>
$role
)
<option value="
{{
data_get
(
$role
,
'id'
)}}
">
{
{data_get($role,'role')}
}
</option>
@endforeach
</select>
<label>Role</label>
<select name="
role
" class="
ui
fluid
dropdown
">
<option value="">Role</option>
@foreach(
$roles
as
$key
=>
$role
)
<option value="
{{
data_get
(
$role
,
'id'
)}}
">
{
{data_get($role,'role')}
}
</option>
@endforeach
</select>
</div>
<div class="
field
">
<label>Project Status</label>
<select name="
status
" class="
ui
fluid
dropdown
">
<!-- <option value="">Project Team Status</option> -->
<option value="
1
">Active</option>
<option value="
0
">Inactive</option>
</select>
<label>Project Status</label>
<select name="
status
" class="
ui
fluid
dropdown
">
<!-- <option value="">Project Team Status</option> -->
<option value="
1
">Active</option>
<option value="
0
">Inactive</option>
</select>
</div>
<button class="
ui
blue
button
" type="
submit
">Add</button>
<button class="
ui
green
button
" type="
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
maintenance
.
senaraiProjectTeam
', ['
id
'=> $pid] ) }} '
;
">Back</button>
</form>
</div>
</div>
@endsection
...
...
packages/portal/timesheet/resources/views/maintenance/senaraiOverhead.blade.php
View file @
c8ce83fb
...
...
@@ -2,33 +2,33 @@
@
section
(
'content'
)
<
div
class
="
ui
segment
">
<a class="
ui
blue
left
ribbon
label
">List of Overhead</a>
<a href="
{{
route
(
'timesheet::maintenance.penambahanOverhead'
)}}
" class="
ui
right
floated
small
primary
labeled
icon
button
"><i class="
plus
icon
"></i>Add Overhead Lookup
</a>
<br>
<table class="
ui
celled
structured
unstackable
table
">
<thead>
<tr>
<th style="
width
:
5
%
" class="
center
aligned
">No</th>
<th>Overhead Lookup</th>
<th style="
width
:
10
%
" class="
center
aligned
">Status</th>
<th style="
width
:
10
%
" class="
center
aligned
">Action</th>
</tr>
</thead>
<tbody>
@foreach(
$overheads
as
$key
=>
$overhead
)
<tr>
<td class="
single
line
center
aligned
">
{
{$key+1}
}
</td>
<td class="
single
line
">
{
{$overhead['lkp_overhead']}
}
</td>
<td class="
single
line
center
aligned
">
{
{$overhead['status']}
}
</td>
<td class="
single
line
center
aligned
">
<a href="
{{
route
(
'timesheet::maintenance.editoverhead'
,
[
'id'
=>
data_get
(
$overhead
,
[
'id'
])])}}
" class="
ui
center
aligned
small
olive
button
"><i class="
edit
icon
"></i>Edit
</a>
</td>
</tr>
@endforeach
</tbody>
<
div
class
="
ui
segment
">
<a class="
ui
blue
left
ribbon
label
">List of Overhead</a>
<a href="
{{
route
(
'timesheet::maintenance.penambahanOverhead'
)}}
" class="
ui
right
floated
small
primary
labeled
icon
button
"><i class="
plus
icon
"></i>Add Overhead Lookup
</a>
<br>
<table class="
ui
celled
structured
unstackable
table
">
<thead>
<tr>
<th style="
width
:
5
%
" class="
center
aligned
">No</th>
<th>Overhead Lookup</th>
<th style="
width
:
10
%
" class="
center
aligned
">Status</th>
<th style="
width
:
10
%
" class="
center
aligned
">Action</th>
</tr>
</thead>
<tbody>
@foreach(
$overheads
as
$key
=>
$overhead
)
<tr>
<td class="
single
line
center
aligned
">
{
{$key+1}
}
</td>
<td class="
single
line
">
{
{$overhead['lkp_overhead']}
}
</td>
<td class="
single
line
center
aligned
">
{
{$overhead['status']}
}
</td>
<td class="
single
line
center
aligned
">
<a href="
{{
route
(
'timesheet::maintenance.editoverhead'
,
[
'id'
=>
data_get
(
$overhead
,
[
'id'
])])}}
" class="
ui
center
aligned
small
olive
button
"><i class="
edit
icon
"></i>Edit
</a>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
@endsection
\ No newline at end of file
packages/portal/timesheet/resources/views/maintenance/senaraiPeranan.blade.php
View file @
c8ce83fb
...
...
@@ -2,34 +2,32 @@
@
section
(
'content'
)
<
div
class
="
ui
segment
">
<a class="
ui
blue
left
ribbon
label
">List of Project Roles</a>
<a href="
{{
route
(
'timesheet::maintenance.penambahanPeranan'
)}}
" class="
ui
right
floated
small
primary
button
"></i>Add New Project Role
</a>
<br>
<table class="
ui
celled
padded
unstackable
table
">
<thead>
<tr>
<th class="
center
aligned
single
line
" style="
width
:
4
%
;
">No</th>
<th class="
single
line
">Role Description</th>
<th class="
center
aligned
single
line
" style="
width
:
10
%
;
">Status</th>
<th class="
center
aligned
single
line
" style="
width
:
10
%
;
">Action</th>
</tr>
</thead>
<tbody>
<
div
class
="
ui
segment
">
<a class="
ui
blue
left
ribbon
label
">List of Project Roles</a>
<a href="
{{
route
(
'timesheet::maintenance.penambahanPeranan'
)}}
" class="
ui
right
floated
small
primary
button
">Add New Project Role</a>
<br>
<table class="
ui
celled
padded
unstackable
table
">
<thead>
<tr>
<th class="
center
aligned
single
line
" style="
width
:
4
%
;
">No</th>
<th class="
single
line
">Role Description</th>
<th class="
center
aligned
single
line
" style="
width
:
10
%
;
">Status</th>
<th class="
center
aligned
single
line
" style="
width
:
10
%
;
">Action</th>
</tr>
</thead>
<tbody>
@foreach(
$roles
as
$key
=>
$role
)
<tr>
<td class="
center
aligned
single
line
">
{
{$key+1}
}
</td>
<td class="
single
line
">
{
{$role['role']}
}
</td>
<td class="
center
aligned
single
line
">
{
{$role['status']}
}
</td>
<td class="
center
aligned
single
line
">
<button class="
compact
ui
olive
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
maintenance
.
editPeranan
', ['
id
' => $role['
id
']]) }}'
;
">Edit
</button>
</td>
<td class="
center
aligned
single
line
">
{
{$key+1}
}
</td>
<td class="
single
line
">
{
{$role['role']}
}
</td>
<td class="
center
aligned
single
line
">
{
{$role['status']}
}
</td>
<td class="
center
aligned
single
line
">
<button class="
compact
ui
olive
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
maintenance
.
editPeranan
', ['
id
' => $role['
id
']]) }}'
;
">Edit</button>
</td>
</tr>
@endforeach
</tbody>
</tbody>
</table>
</div>
</div>
@endsection
packages/portal/timesheet/resources/views/maintenance/senaraiProject.blade.php
View file @
c8ce83fb
...
...
@@ -2,46 +2,44 @@
@
section
(
'content'
)
<
div
class
="
ui
segment
">
<a class="
ui
blue
left
ribbon
label
">List of Project</a>
<a href="
{{
route
(
'timesheet::maintenance.penambahanProject'
)}}
" class="
ui
right
floated
small
primary
labeled
icon
button
"><i class="
plus
icon
"></i>Add New Project
</a>
<br>
<table class="
ui
celled
structured
table
unstackable
">
<thead>
<tr>
<th class="
single
line
">No</th>
<th class="
single
line
">Project Code</th>
<th class="
single
line
">Project Name</th>
<th class="
single
line
">Project Manager</th>
<th class="
text
-
center
single
line
">Status</th>
<th class="
text
-
center
single
line
">Action</th>
</tr>
</thead>
<tbody>
@foreach(
$projectlist
as
$key
=>
$project
)
<tr>
<td>
{
{$key+1}
}
</td>
<td class="
single
line
">{{ data_get(
$project
,'projectcode') }} </td>
<td class="
single
line
">{{ data_get(
$project
,'projectname') }} </td>
<td class="
single
line
">{{ data_get(
$project
,'projectmanager') }} </td>
<td class="
text
-
center
single
line
">{{ data_get(
$project
,'status') }} </td>
<td class="
text
-
center
single
line
">
<button class="
compact
green
ui
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
maintenance
.
senaraiProjectTeam
', ['
id
' => $project['
id
']]) }}'
;
">
Team
</button>
<button class="
compact
olive
ui
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
maintenance
.
updateProject
', ['
id
' => $project['
id
']]) }}'
;
">
Edit Project
</button>
<button class="
compact
purple
ui
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
maintenance
.
mandays
', ['
id
' => $project['
id
']]) }}'
;
">
Mandays
</button>
</td>
</tr>
@endforeach
</tbody>
<
div
class
="
ui
segment
">
<a class="
ui
blue
left
ribbon
label
">List of Project</a>
<a href="
{{
route
(
'timesheet::maintenance.penambahanProject'
)}}
" class="
ui
right
floated
small
primary
labeled
icon
button
"><i class="
plus
icon
"></i>Add New Project</a>
<br>
<table class="
ui
celled
structured
table
unstackable
">
<thead>
<tr>
<th class="
single
line
">No</th>
<th class="
single
line
">Project Code</th>
<th class="
single
line
">Project Name</th>
<th class="
single
line
">Project Manager</th>
<th class="
text
-
center
single
line
">Status</th>
<th class="
text
-
center
single
line
">Action</th>
</tr>
</thead>
<tbody>
@foreach(
$projectlist
as
$key
=>
$project
)
<tr>
<td>
{
{$key+1}
}
</td>
<td class="
single
line
">{{ data_get(
$project
,'projectcode') }} </td>
<td class="
single
line
">{{ data_get(
$project
,'projectname') }} </td>
<td class="
single
line
">{{ data_get(
$project
,'projectmanager') }} </td>
<td class="
text
-
center
single
line
">{{ data_get(
$project
,'status') }} </td>
<td class="
text
-
center
single
line
">
<button class="
compact
green
ui
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
maintenance
.
senaraiProjectTeam
', ['
id
' => $project['
id
']]) }}'
;
">
Team
</button>
<button class="
compact
olive
ui
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
maintenance
.
updateProject
', ['
id
' => $project['
id
']]) }}'
;
">
Edit Project
</button>
<button class="
compact
purple
ui
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
maintenance
.
mandays
', ['
id
' => $project['
id
']]) }}'
;
">
Mandays
</button>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
@endsection
packages/portal/timesheet/resources/views/maintenance/senaraiProjectTeam.blade.php
View file @
c8ce83fb
...
...
@@ -2,63 +2,42 @@
@
section
(
'content'
)
<
div
class
="
ui
segment
">
<a class="
ui
blue
left
ribbon
label
">List of Project Team</a>
<a href="
{{
route
(
'timesheet::maintenance.penambahanProjectTeam'
,
[
'id'
=>
$pid
])
}}
" class="
ui
right
floated
small
primary
labeled
icon
button
"><i class="
plus
icon
"></i>Add New Project Team
</a>
<br>
<table class="
ui
celled
structured
unstackable
table
">
<thead>
<tr>
<th>No</th>
<th class="
single
line
">Project Code</th>
<th class="
single
line
">Project Name</th>
<th class="
single
line
">Project Team</th>
<th class="
single
line
">Role</th>
<th class="
single
line
">Status</th>
<th class="
single
line
">Action</th>
</tr>
</thead>
<tbody>
@foreach(
$projectlist
as
$key
=>
$project
)
<tr>
<td class="
single
line
">
{
{$key+1}
}
</td>
<td class="
single
line
">
{
{$project['projectcode']}
}
</td>
<td class="
single
line
">
{
{$project['projectname']}
}
</td>
<td class="
single
line
">
{
{$project['projectteam']}
}
</td>
<td class="
single
line
">{{ data_get(
$project
, 'role') }}</td>
<td class="
single
line
">
{
{$project['status']}
}
</td>
<td class="
single
line
">
<button class="
compact
ui
olive
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
maintenance
.
editprojectteam
', ['
id
' => $project['
id
']])}}'
;
">Edit
</button>
</td>
</tr>
@endforeach
</tbody>
<!-- <tfoot>
<tr>
<th colspan="
7
">
<div class="
ui
right
floated
pagination
menu
">
<a class="
icon
item
">
<i class="
left
chevron
icon
"></i>
</a>
<a class="
item
">1</a>
<a class="
item
">2</a>
<a class="
item
">3</a>
<a class="
item
">4</a>
<a class="
icon
item
">
<i class="
right
chevron
icon
"></i>
</a>
</div>
</th>
</tr>
</tfoot> -->
<
div
class
="
ui
segment
">
<a class="
ui
blue
left
ribbon
label
">List of Project Team</a>
<a href="
{{
route
(
'timesheet::maintenance.penambahanProjectTeam'
,
[
'id'
=>
$pid
])
}}
" class="
ui
right
floated
small
primary
labeled
icon
button
"><i class="
plus
icon
"></i>Add New Project Team</a>
<br>
<table class="
ui
celled
structured
unstackable
table
">
<thead>
<tr>
<th>No</th>
<th class="
single
line
">Project Code</th>
<th class="
single
line
">Project Name</th>
<th class="
single
line
">Project Team</th>
<th class="
single
line
">Role</th>
<th class="
single
line
">Status</th>
<th class="
single
line
">Action</th>
</tr>
</thead>
<tbody>
@foreach(
$projectlist
as
$key
=>
$project
)
<tr>
<td class="
single
line
">
{
{$key+1}
}
</td>
<td class="
single
line
">
{
{$project['projectcode']}
}
</td>
<td class="
single
line
">
{
{$project['projectname']}
}
</td>
<td class="
single
line
">
{
{$project['projectteam']}
}
</td>
<td class="
single
line
">{{ data_get(
$project
, 'role') }}</td>
<td class="
single
line
">
{
{$project['status']}
}
</td>
<td class="
single
line
">
<button class="
compact
ui
olive
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
maintenance
.
editprojectteam
', ['
id
' => $project['
id
']])}}'
;
">Edit</button>
</td>
</tr>
@endforeach
</tbody>
</table>
<button class="
center
aligned
ui
teal
compact
labeled
icon
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
maintenance
.
senaraiProject
', [ '
id
' => $pid ]) }}'
;
">
<i class="
angle
double
left
icon
"></i>
Back
<i class="
angle
double
left
icon
"></i>
Back
</button>
</div>
</div>
@endsection
packages/portal/timesheet/resources/views/maintenance/updateProject.blade.php
View file @
c8ce83fb
@
extends
(
'ui::layouts.app'
)
@
section
(
'content'
)
<
div
class
="
ui
segment
">
<a class="
ui
blue
left
ribbon
label
">Edit Project</a>
<br><br>
<form class="
ui
form
" action="
{{
route
(
'timesheet::maintenance.editproject'
)
}}
" method="
POST
">
<
div
class
="
ui
segment
">
<a class="
ui
blue
left
ribbon
label
">Edit Project</a>
<br><br>
<form class="
ui
form
" action="
{{
route
(
'timesheet::maintenance.editproject'
)
}}
" method="
POST
">
{
{csrf_field()}
}
<input type="
hidden
" name="
staffid
" value="
{{
$staffid
}}
">
<input type="
hidden
" name="
pid
" value="
{{
$pid
}}
">
<div class="
field
">
<label>Project Code</label>
<input type="
text
" name="
projectcode
" value="
{{
data_get
(
$project
,
'p_project_code'
)}}
" disabled="
disabled
">
<label>Project Code</label>
<input type="
text
" name="
projectcode
" value="
{{
data_get
(
$project
,
'p_project_code'
)}}
" disabled="
disabled
">
</div>
<div class="
field
">
<label>Project Name</label>
<input type="
text
" name="
projectname
" value="
{{
data_get
(
$project
,
'p_project_description'
)}}
" disabled="
disabled
">
<label>Project Name</label>
<input type="
text
" name="
projectname
" value="
{{
data_get
(
$project
,
'p_project_description'
)}}
" disabled="
disabled
">
</div>
<div class="
field
">
<label>Project Manager</label>
<select name="
projectmanager
" class="
ui
fluid
dropdown
">
<option value="
{{
data_get
(
$project
,
'p_project_task_team'
)}}
">
@foreach(
$pm
as
$key
=>
$value
)
@if(
$value->staff_id
==
$project->p_project_task_team
)
{
{data_get($value,'fullname')}
}
@endif
@endforeach
</option>
<label>Project Manager</label>
<select name="
projectmanager
" class="
ui
fluid
dropdown
">
<option value="
{{
data_get
(
$project
,
'p_project_task_team'
)}}
">
@foreach(
$pm
as
$key
=>
$value
)
@if(
$value->staff_id
==
$project->p_project_task_team
)
{
{data_get($value,'fullname')}
}
@endif
@endforeach
</option>
@foreach(
$pm
as
$key
=>
$value
)
<option value="
{{
data_get
(
$value
,
'staff_id'
)}}
">
{
{data_get($value,'fullname')}
}
</option>
<option value="
{{
data_get
(
$value
,
'staff_id'
)}}
">
{
{data_get($value,'fullname')}
}
</option>
@endforeach
</select>
</select>
</div>
<div class="
field
">
<label>Project Status</label>
<select name="
status
" class="
ui
fluid
dropdown
">
<option value="
1
">Active</option>
<option value="
0
">Inactive</option>
</select>
<label>Project Status</label>
<select name="
status
" class="
ui
fluid
dropdown
">
<option value="
1
">Active</option>
<option value="
0
">Inactive</option>
</select>
</div>
<button class="
ui
blue
button
" type="
submit
">Update</button>
<button class="
ui
green
button
" type="
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
maintenance
.
senaraiProject
') }} '
;
">Back</button>
</form>
</div>
</form>
</div>
@endsection
\ No newline at end of file
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
View file @
c8ce83fb
...
...
@@ -53,9 +53,11 @@ class DashboardController extends Controller
}
if
((
$roleid
==
(
'2'
||
'5'
||
'6'
||
'7'
||
'8'
)))
{
$staffid
=
u
sers
::
find
(
Auth
::
id
())
$staffid
=
U
sers
::
find
(
Auth
::
id
())
->
u_staffID
;
$staffs
=
Staff_info
::
where
(
'status'
,
1
)
->
get
();
// dd($staffs);
$timesheet
=
Ts_master
::
where
(
'tm_staff_id'
,
$staffid
)
->
orderby
(
'tm_year'
)
->
orderby
(
'tm_month'
,
'DESC'
)
...
...
@@ -70,7 +72,7 @@ class DashboardController extends Controller
}
)
->
paginate
(
15
);
return
view
(
'timesheet::dashboard.dashboardstaff'
,
compact
(
'user'
,
'timesheet'
));
return
view
(
'timesheet::dashboard.dashboardstaff'
,
compact
(
'user'
,
'timesheet'
,
'staffs'
));
}
if
(
$roleid
==
'3'
)
{
...
...
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