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>
<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
......
...@@ -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