Commit fcd42909 by Azhan Hannan

changes for pilot

parent 087759c6
......@@ -583,31 +583,29 @@
</table>
</div>
<!-- <div class="ui segment">
<div class="ui segment">
<table id="printtable7" class="ui celled structured table unstackable">
<thead>
<tr>
<th class="center aligned">Submitted at</th>
<th class="center aligned">Verified by</th>
<th class="center aligned">Verified at</th>
<th class="center aligned">Approved by</th>
<th class="center aligned">Approved at</th>
<th style="width: 33%;" class="center aligned">Staff Signature</th>
<th style="width: 33%;" class="center aligned">Reviewed by</th>
<th style="width: 33%;" class="center aligned">Approved by</th>
</tr>
</thead>
<tbody>
<tr>
<?php
// $verifiername = $approvalname= "";
?>
<td class="center aligned">@if($check){{ data_get($check,'tm_submission_at') }}@endif</td>
<td class="center aligned">@if($check){{ data_get($profile,'HOD_NAME') }}@endif</td>
<td class="center aligned">@if($check){{ data_get($check,'tm_verified_at') }}@endif</td>
<td class="center aligned">@if($check){{ data_get($profile,'BOD_NAME') }}@endif</td>
<td class="center aligned">@if($check){{$check->tm_approved_at}}@endif</td>
<td style="width: 33%;" class="center aligned"><br><br></td>
<td style="width: 33%;" class="center aligned"><br><br></td>
<td style="width: 33%;" class="center aligned"><br><br></td>
</tr>
<tr>
<td style="width: 33%;" class="center aligned">@if($profile){{ data_get($profile,'STAFF_NAME') }}@endif</td>
<td style="width: 33%;" class="center aligned">@if($profile){{ data_get($profile,'HOD_NAME') }}@endif</td>
<td style="width: 33%;" class="center aligned">@if($profile){{ data_get($profile,'BOD_NAME') }}@endif</td>
</tr>
</tbody>
</table>
</div> -->
</div>
</div>
<br>
......
......@@ -2,22 +2,24 @@
@section('content')
<div class="ui segment">
<div class="ui tall stacked segment">
<a class="ui green left ribbon label">Report Summary </a>
<br><br>
<form class="ui form" action="{{ route('timesheet::report.generateRingkasan') }}" method="POST">
{{csrf_field()}}
<div class="five wide field">
<label>Department</label>
<select name="dept" class="ui fluid dropdown" required="required">
<option value="all">All staffs</option>
@foreach($dept as $key => $value)
<option value="{{data_get($value, 'id')}}">{{ data_get($value,'description') }}</option>
@endforeach
</select>
</div>
<div class="one fields">
<div class="six wide field">
<label>Department</label>
<select name="dept" class="ui fluid dropdown" required="required">
<option value="all">All staffs</option>
@foreach($dept as $key => $value)
<option value="{{data_get($value, 'id')}}">{{ data_get($value,'description') }}</option>
@endforeach
</select>
</div>
</div>
<div class="two fields">
<div class="three wide field">
......
......@@ -1246,7 +1246,7 @@ class DashboardController extends Controller
if (isset($request->user)) {
$user = Staff_info::where('staff_id', $request->user)
->first();
->first();
}
$profile = VwViewer::where('STAFF_ID', $user->staff_id)
......
......@@ -33,6 +33,11 @@ class Staff_info extends Model
return $this->hasOne('Portal\Timesheet\Model\Staff_info','id','penyokong');
}
// public function infopelulus()
// {
// return $this->hasOne('Portal\Timesheet\Model\Staff_info','id','pelulus');
// }
// public function project_code()
// {
// return $this->hasMany('Portal\Timesheet\Model\Ts_detail','td_project','id');
......
......@@ -86,22 +86,22 @@ class ServiceProvider extends BaseServiceProvider
->data('icon', 'calendar alternate outline icon')
->active('timesheetViewer/*')
->data('permission', Permission::tsviewer);
// $form->add(__('Chargeable Verification'), route('timesheet::dashboard.filterProjectVerify'))
// ->data('icon', 'calendar alternate outline icon')
// ->active('timesheetApproval/*')
// ->data('permission', Permission::pmverify);
// $form->add(__('Chargeable Approval'))
// ->data('icon', 'calendar alternate outline icon')
// ->active('timesheetApproval/*')
// ->data('permission', Permission::pdapproval);
// $form->add(__('Overhead Review'), route('timesheet::dashboard.filterReview'))
// ->data('icon', 'calendar alternate outline icon')
// ->active('timesheetReview/*')
// ->data('permission', Permission::kehadiran);
// $form->add(__('Timesheet Approval'), route('timesheet::dashboard.filterApproval'))
// ->data('icon', 'calendar alternate outline icon')
// ->active('timesheetApproval/*')
// ->data('permission', Permission::tsapproval);
$form->add(__('Chargeable Verification'), route('timesheet::dashboard.filterProjectVerify'))
->data('icon', 'calendar alternate outline icon')
->active('timesheetApproval/*')
->data('permission', Permission::pmverify);
$form->add(__('Chargeable Approval'))
->data('icon', 'calendar alternate outline icon')
->active('timesheetApproval/*')
->data('permission', Permission::pdapproval);
$form->add(__('Overhead Review'), route('timesheet::dashboard.filterReview'))
->data('icon', 'calendar alternate outline icon')
->active('timesheetReview/*')
->data('permission', Permission::kehadiran);
$form->add(__('Timesheet Approval'), route('timesheet::dashboard.filterApproval'))
->data('icon', 'calendar alternate outline icon')
->active('timesheetApproval/*')
->data('permission', Permission::tsapproval);
$laporan = $this->app['laravolt.menu']->add(__('Report'))->data('icon', 'align justify');
$laporan->add(__('Report Summary'), route('timesheet::report.ringkasanLaporan'))
......
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