Commit 3a76f379 by hannan

changes

parent a644fc15
......@@ -23,5 +23,6 @@ final class Permission extends Enum
const tsviewer = 'tsviewer';
const laporan = 'laporan';
const projek = 'projek';
const perananprojek = 'perananprojek';
}
......@@ -768,7 +768,7 @@
@else
@if($check != null)
@if(data_get($check,'tm_timesheet_master_sts') != (2||3||4) )
@if(data_get($check,'tm_timesheet_master_sts') != ( 2 || 3 || 4 ) )
<button type="button" class="ui green button" onclick="window.location.href='{{ route('timesheet::dashboard.tsubmit',[ 'tid'=> $check->id, 'totalot'=> $totalot, 'totalchargehrs'=>$totalchargehrs, 'totalnonchargehrs'=> $totalnonchargehrs, 'totaloverheadhrs'=>$totaloverheadhrs ]) }}';">Submit</button>
@endif
@else
......
......@@ -16,7 +16,7 @@
<tr>
<th style="width: 10%"> Month/Year</th>
<th style="width: 1%">:</th>
<th> {{ $month}} {{ $year}}</th>
<th style="width: 89%"> {{ $month}} {{ $year}}</th>
</tr>
</thead>
</table>
......
......@@ -117,7 +117,15 @@ class ServiceProvider extends BaseServiceProvider
$Projek->add(__('Add New Project'), route('timesheet::maintenance.penambahanProject'))
->data('icon', 'users icon')
->active('projek/*')
->data('permission', Permission::projek);
->data('permission', Permission::projek);
$PerananProjek->add(__('List of Roles'), route('timesheet::maintenance.senaraiPeranan'))
->data('icon', 'users icon')
->active('perananprojek/*')
->data('permission', Permission::perananprojek);
$PerananProjek->add(__('Add New Roles'), route('timesheet::maintenance.penambahanPeranan'))
->data('icon', 'users icon')
->active('perananprojek/*')
->data('permission', Permission::perananprojek);
$pengurusanProject = $this->app['laravolt.menu']->add(__('Project Management'))->data('icon', 'align justify');
$pengurusanProject->add(__('List of Project'), route('timesheet::maintenance.senaraiProject'))
......
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