@extends('portal.layouts.app', [ 'class' => '', 'elementActive' => '' ]) @section('title','Approved Candidates') @section('css') @endsection @section('content')

Approved Candidates

{{-- @can('create candidate') @if(auth()->user()->id == 1) @endif @endcan --}}
@foreach($data as $k=>$item) @endforeach
# Name Phone Number Agent Partner Passport Good Conduct Job Title Action
{{$k+1}} {{$item->user?->name}} {{$item->user?->phone}} {{$item->agent->name ?? 'N/A'}} {{$item->partner->category->name ?? 'N/A'}}
{{$item->partner->name ?? 'N/A'}}
@if($item->has_passport) @else @endif @if($item->has_good_conduct) @else @endif {{$item->job_title}}
@endsection @section('script') @endsection