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
81fa4c99
Commit
81fa4c99
authored
Nov 25, 2022
by
Azhan Hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Permisssion HR untuk tengok list project
parent
f16d60e7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
16 deletions
+22
-16
packages/portal/timesheet/resources/views/maintenance/senaraiProject.blade.php
+21
-15
packages/portal/timesheet/src/Http/Controllers/MaintenanceController.php
+1
-1
No files found.
packages/portal/timesheet/resources/views/maintenance/senaraiProject.blade.php
View file @
81fa4c99
...
@@ -19,7 +19,10 @@
...
@@ -19,7 +19,10 @@
<th class="
single
line
">Project Manager</th>
<th class="
single
line
">Project Manager</th>
<th class="
single
line
">Project Director</th>
<th class="
single
line
">Project Director</th>
<th class="
text
-
center
single
line
">Status</th>
<th class="
text
-
center
single
line
">Status</th>
<th class="
text
-
center
single
line
">Action</th>
@if(
$roleid
== 6)
@else
<th class="
text
-
center
single
line
">Action</th>
@endif
</tr>
</tr>
</thead>
</thead>
<tbody>
<tbody>
...
@@ -39,21 +42,24 @@
...
@@ -39,21 +42,24 @@
Inactive
Inactive
@endif
@endif
</td>
</td>
<td class="
text
-
center
single
line
">
@if(
$roleid
== 6)
<button class="
compact
green
ui
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
maintenance
.
senaraiProjectTeam
', ['
id
' => $project['
id
']]) }}'
;
">
@else
Team
<td class="
text
-
center
single
line
">
</button>
<button class="
compact
green
ui
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
maintenance
.
senaraiProjectTeam
', ['
id
' => $project['
id
']]) }}'
;
">
<button class="
compact
olive
ui
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
maintenance
.
updateProject
', ['
id
' => $project['
id
']]) }}'
;
">
Team
Edit Project
</button>
</button>
<button class="
compact
olive
ui
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
maintenance
.
updateProject
', ['
id
' => $project['
id
']]) }}'
;
">
<button class="
compact
purple
ui
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
maintenance
.
mandays
', ['
id
' => $project['
id
']]) }}'
;
">
Edit Project
Mandays
</button>
</button>
<button class="
compact
purple
ui
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
maintenance
.
mandays
', ['
id
' => $project['
id
']]) }}'
;
">
Mandays
</button>
<button type="
button
" class="
compact
ui
red
button
" id="
uploadmodal
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
maintenance
.
deleteproject
', ['
id
' => $project['
id
']]) }}'
;
">
<button type="
button
" class="
compact
ui
red
button
" id="
uploadmodal
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
maintenance
.
deleteproject
', ['
id
' => $project['
id
']]) }}'
;
">
Delete
Delete
</button>
</button>
</td>
</td>
@endif
</tr>
</tr>
@endforeach
@endforeach
...
...
packages/portal/timesheet/src/Http/Controllers/MaintenanceController.php
View file @
81fa4c99
...
@@ -37,7 +37,7 @@ class MaintenanceController extends Controller
...
@@ -37,7 +37,7 @@ class MaintenanceController extends Controller
$chargeable
=
1
;
$chargeable
=
1
;
if
(
$roleid
==
'9'
||
$roleid
==
'2'
)
if
(
$roleid
==
'9'
||
$roleid
==
'2'
||
$roleid
==
'6'
)
{
{
$project
=
Project
::
where
(
'p_project_type'
,
$chargeable
)
$project
=
Project
::
where
(
'p_project_type'
,
$chargeable
)
->
with
(
'projectDirector'
)
->
with
(
'projectDirector'
)
...
...
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