@include('partials.breadcrumbs')

Edit Employee @include('layouts.crmnov')

@php $borderColor = ''; if($data['performance_status'] == '' || $data['performance_status'] == 1) { $borderClass = 'border-green'; } elseif($data['performance_status'] == 2) { $borderClass = 'border-amber'; } elseif($data['performance_status'] == 3) { $borderClass = 'border-red'; } @endphp
@if(isset($data['employee_pic']) && ($data['employee_pic']!=='') && (file_exists(public_path('crm/employee/'.$data['employee_pic'])))) @if (isset($data['employee_pic_status']) && ($data['employee_pic_status'] == 1)) @elseif (auth()->user()->role == 'admin' || auth()->user()->role == 'superadmin' || auth()->user()->role == 'home manager') @else @endif @if (auth()->user()->role == 'admin' || auth()->user()->role == 'superadmin' || auth()->user()->role == 'home manager')
@if (isset($data['employee_pic_status']) && ($data['employee_pic_status'] == 1)) @else @endif @if (auth()->user()->role == 'admin' || auth()->user()->role == 'superadmin') Download @endif
@endif @else @endif
{{----}}
@php $statusColor = 'green'; if ($data['performance_status'] == 1) { $statusColor = 'green'; } elseif ($data['performance_status'] == 2) { $statusColor = 'orange'; } elseif ($data['performance_status'] == 3) { $statusColor = 'red'; } $trafficLightStatus = ''; if (isset($perm['main']['traffic_light_status'])) { $trafficLightStatus = $perm['main']['traffic_light_status']; } @endphp @if($trafficLightStatus == 1)
@endif
End Date @if(!empty($data['end_date'])) Clear End Date @endif
Detailed Information
@if(isset($data['current_grading']) && $data['current_grading'] !== '') @for($i = 1; $i <= $data['current_grading']; $i++) @endfor @for($j = $data['current_grading'] + 1; $j <= 5; $j++) @endfor @else @for($j = 1; $j <= 5; $j++) @endfor @endif
{{--
--}}
{{-- {{ dd($perm) }} --}}
@if($userRole == 'admin' || ($userRole == 'employee' && isset($perm['leaderboard_appearance'][$data['id']]) && ($perm['leaderboard_appearance'][$data['id']] == 1)) || ($userRole == 'employee' && isset($perm['home_not_linked_leaderboard_appearance'][$data['id']]) && ($perm['home_not_linked_leaderboard_appearance'][$data['id']] == 1)) || ($userRole == 'employee' && isset($perm['office_staff_leaderboard_appearance'][$data['id']]) && ($perm['office_staff_leaderboard_appearance'][$data['id']] == 1)))
@endif {{--
--}}
Contact Detail
Miscellaneous Details
{{--

Douglas Road

--}}