@php $role = Auth::user(); $hrRole = Spatie\Permission\Models\Role::where('name', HR_ROLE)->first(); @endphp
@if($role->hasRole(VP_ROLE) || $role->hasRole('Executive-Admin')) @endif @if($role->hasRole('Principal')) @endif @foreach(get_appraisal_data($valueName,$dept) as $appraisal_data) @if($role->hasRole(VP_ROLE) || $role->hasRole('Executive-Admin')) @endif @if($role->hasRole('Principal')) @endif @endforeach
{{$valueId}}HOD RatingPrincipal Rating
{{$appraisal_data->details}}