Commit 81fa4c99 by Azhan Hannan

Permisssion HR untuk tengok list project

parent f16d60e7
...@@ -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>
@if($roleid == 6)
@else
<th class="text-center single line">Action</th> <th class="text-center single line">Action</th>
@endif
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
...@@ -39,6 +42,8 @@ ...@@ -39,6 +42,8 @@
Inactive Inactive
@endif @endif
</td> </td>
@if($roleid == 6)
@else
<td class="text-center single line"> <td class="text-center single line">
<button class="compact green ui button" onclick="window.location.href='{{ route('timesheet::maintenance.senaraiProjectTeam', ['id' => $project['id']]) }}';"> <button class="compact green ui button" onclick="window.location.href='{{ route('timesheet::maintenance.senaraiProjectTeam', ['id' => $project['id']]) }}';">
Team Team
...@@ -54,6 +59,7 @@ ...@@ -54,6 +59,7 @@
Delete Delete
</button> </button>
</td> </td>
@endif
</tr> </tr>
@endforeach @endforeach
......
...@@ -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')
......
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