1
1
@extends (' layouts.app' )
2
-
3
2
@section (' content' )
3
+
4
+ <!-- As of now we have hardCoded the earningValue until we unable to fetch the real data -->
5
+ @php
6
+ $routeName = Route:: getCurrentRoute ()-> getName ();
7
+ $earningValue = 0 ;
8
+ @endphp
4
9
<div class =" container" >
5
10
<br >
6
11
@include (' hr.employees.menu' )
30
35
<thead class =" thead-dark" >
31
36
<tr class =" sticky-top" >
32
37
<th >Name</th >
38
+ @if ($routeName === " employee" )
33
39
<th >Active Projects Count</th >
34
40
<th >
35
41
Overall FTE
43
49
<i class =" fa fa-info-circle" aria-hidden =" true" ></i >
44
50
</span >
45
51
</th >
52
+ @else
53
+ <th >
54
+ Employee Earning
55
+ <span class =" tooltip-wrapper" data-html =" true" data-toggle =" tooltip" title =" Rate" >
56
+ <i class =" fa fa-info-circle" aria-hidden =" true" ></i >
57
+ </span >
58
+ </th >
59
+ @endif
46
60
</tr >
47
61
@foreach ($employees as $employee )
48
62
<tr >
@@ -66,6 +80,7 @@ class="{{ config('constants.review-tags.completed.class') }} badge-pill mr-1 mb-
66
80
@endif
67
81
</a >
68
82
</td >
83
+ @if ($routeName === " employee" )
69
84
<td >
70
85
@if ($employee -> user == null )
71
86
0
@@ -80,6 +95,7 @@ class="{{ config('constants.review-tags.completed.class') }} badge-pill mr-1 mb-
80
95
{{ $totalFTE } }
81
96
@endif
82
97
</td >
98
+ if
83
99
<td >
84
100
<span class =" text-success" >
85
101
{{ $user -> total_hours [' billable' ] } }
@@ -89,6 +105,21 @@ class="{{ config('constants.review-tags.completed.class') }} badge-pill mr-1 mb-
89
105
{{ $user -> total_hours [' non_billable' ] } }
90
106
</span >
91
107
</td >
108
+ @else
109
+ <td >
110
+ @if ($earningValue >= 0 )
111
+ <span class =" text-success" >
112
+ {{ $earningValue } }
113
+ <span class =" d-inline-block pr-2 h-30 w-30" >{!! file_get_contents (public_path (' icons/green-tick.svg' )) ! !} </span >
114
+ </span >
115
+ @else
116
+ <span class =" text-secondary pl-2" >
117
+ {{ $earningValue } }
118
+ <span class =" d-inline-block h-30 w-30" >{!! file_get_contents (public_path (' icons/warning-symbol.svg' )) ! !} </span >
119
+ </span >
120
+ @endif
121
+ </td >
122
+ @endif
92
123
</tr >
93
124
@endforeach
94
125
</table >
0 commit comments