@php use App\Models\Payroll\Perform_Appraisal\PayAppScore; @endphp {{-- --}} @foreach ($results as $result) @php $checkEmp = PayAppScore::where('emp_id', $result->id)->first(); @endphp @endforeach
Emp Designation DepartmentApp Form StatusAction
{{ $result->emp_name }} @if (!empty($result->fetch_designation)) {{ $result->fetch_designation->name }} @else

Not Found

@endif
@if (!empty($result->fetch_department)) {{ $result->fetch_department->name }} @else

Not Found

@endif
@if (empty($checkEmp)) @elseif(!empty($checkEmp)) @endif