Commit 81fa4c99 by Azhan Hannan

Permisssion HR untuk tengok list project

parent f16d60e7
......@@ -19,7 +19,10 @@
<th class="single line">Project Manager</th>
<th class="single line">Project Director</th>
<th class="text-center single line">Status</th>
@if($roleid == 6)
@else
<th class="text-center single line">Action</th>
@endif
</tr>
</thead>
<tbody>
......@@ -39,6 +42,8 @@
Inactive
@endif
</td>
@if($roleid == 6)
@else
<td class="text-center single line">
<button class="compact green ui button" onclick="window.location.href='{{ route('timesheet::maintenance.senaraiProjectTeam', ['id' => $project['id']]) }}';">
Team
......@@ -54,6 +59,7 @@
Delete
</button>
</td>
@endif
</tr>
@endforeach
......
......@@ -37,7 +37,7 @@ class MaintenanceController extends Controller
$chargeable = 1;
if($roleid == '9' || $roleid == '2')
if($roleid == '9' || $roleid == '2' || $roleid == '6' )
{
$project = Project::where('p_project_type', $chargeable)
->with('projectDirector')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment