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