Commit be9671a5 by Azhan Hannan

wirda submit -> en fairuz verify -> PD/BOD reject -> wirda resubmit --> tk dpat ke en fairuz

parent 1d548e96
@extends('ui::layouts.app')
@section('content')
<!-- Staff Timesheet Section Start -->
<div class="ui segment">
<!-- <a class="ui blue left ribbon label">Welcome Back</a>
......@@ -289,8 +288,7 @@
<?php
$page = 1;
$project = $checksts = 0;
$pmss = $profile->where('dept', 4);
// dd($pmss);
$pmss = $profile->where('dept', 4)->where('staff_id', '<>', $verifier->u_staffID);
?>
@if($pms)
@foreach($pmss as $key => $staff)
......@@ -339,7 +337,7 @@
$allproject = count(data_get($pmss[$key], 'countchargeable'));
?>
@if($status == 1 || $status == null) In Preparation
@elseif($verified == $allproject) <i class="green check icon"></i> Verified by PM
@elseif($verified == $allproject || $status == 3) <i class="green check icon"></i> Verified by PM
@elseif($status == 2) <i class="red attention icon"></i> Submitted
@elseif($status == 4) <i class="green check icon"></i>Verified by PD
@elseif($status == 5) <i class="red attention icon"></i>Dissaproved by PD
......@@ -480,7 +478,6 @@
@endif
</div>
@endif
@endforeach
@else
<!-- <table class="ui unstackable celled table">
......
......@@ -228,7 +228,7 @@ class DashboardController extends Controller
$profile = VwChargeableVerification::select('tmid', 'staff_id', 'year', 'month', 'phase', 'status', 'submission', 'fullname', 'roleid', 'pmstaffid', 'dept')
->where('pmstaffid', $verifier->u_staffID)
// ->where('status', '<>', 1)
->whereIn('status', [2,6])
->whereIn('status', [2,3,5,6])
->distinct('staff_id')
->orderby('roleid')
->with('countchargeable')
......
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