@extends('home.partial.layout') @auth @php $user = Auth::user(); $role = $user->role; @endphp @endauth @section('content') @if(session('error'))
{{ session('error') }}
@endif

Performance Improvement Plan

@foreach($employees as $employee) @endforeach
Emp Name Emp No. Designation D.O.J Pip Date Scf Status Status Action

{{$employee->name}} {{$employee->lname}}@if($employee->designations){{$employee->designations->name}}@else @endif

{{$employee->employee_no}} @if($employee->designations){{$employee->designations->name}}@else @endif @if(NULL!=$employee->joiningdate) {{date('d-m-Y', strtotime($employee->joiningdate))}} @endif @if($employee->scf != null) {{ $employee->scf->pip_required == 1 ? "SCF Intiated" : "" }} @else @endif @if($employee->pip) {{date('d-m-Y', strtotime($employee->pip->date))}} @endif @if($user->hasRole('Principal') ||$user->hasRole('Vp') || $user->hasRole('Hr') ) @if($employee->pip) @endif @endif @if($user->hasRole(VP_ROLE) || $user->hasRole('Principal')|| $user->hasRole('Executive-Admin')) @if($employee->pip) @else @endif @endif @if($employee->pip) @endif @if($user->hasRole(SUPER_ADMIN_ROLE)) @if($employee->pip) @endif @endif
@endsection