{{-- 1st card start --}}
{{ $user->name }}

{{ $user->name ?? 'No Data found' }}

{{ $user->email }}

Service Length: {{ \Carbon\Carbon::parse($user->joining_date)->diffForHumans() ?? 'No Data found' }}

@if (Auth::user()->role_id == 1 || Auth::user()->role_id == 5 || Auth::user()->role_id == 4 || (Auth::user()->role_id == 3 && $user->department_id == Auth::user()->department_id) || $user->id == Auth::user()->id) @else @endif
  • Employee ID
    {{ $user->emp_id ?? 'No Data found' }}
  • Mobile
    {{ $user->mobile ?? 'No Data found' }}
  • WhatsApp
    whatsapp
{{-- 1st card end --}} {{-- 2nd card start --}}
{{-- card 1 start --}}
Joining Date
{{ $user->joining_date ?? 'No Data found' }}

Division
{{ $user->division->name ?? 'No Data found' }}

Company
{{ $user->company->name ?? 'No Data found' }}

Department
{{ $user->department->name ?? 'No Data found' }}

Designation:
{{ $user->designation->name ?? 'No Data found' }}
{{-- card 1 end --}} {{-- card 2 start --}} @php // $supervisor = App\Models\SupervisorAssign::where('user_id', $user->id)->first(); // $kpiEntry = App\Models\KpiEntry::where('user_id', $user->id)->get(); // dd($supervisor) // dd($kpiEntry) @endphp {{-- @isset($supervisor) --}}
KPI
{{-- --}} @php $kpiEntry = DB::table('kpi_entries') ->select('user_id', 'kpi_period') ->where('user_id', $user->id) ->distinct() ->get(); // @dd($kpiEntry); @endphp @forelse ($kpiEntry as $kpi) {{-- --}} @empty @endforelse
KPI PhaseStatus
{{ $kpi->kpi_period }} @if ($kpi) Complete @elseif($kpi->status == 0) Incomplete @else Pending @endif
No Data Found

{{-- @endisset --}} {{-- card 2 end --}}
{{-- 2nd card end --}}
{{-- row gutters-sm end --}}
{{-- main-body end --}}