@extends('layouts.app') @section('title') Applicant List @endsection @section('content')
Applicants List
@if (session('success')) @elseif(session('error')) @endif
Applicants
{{-- @foreach ($applicants as $index => $applicant) @endforeach
# Applicant Name Applicant ID Status NRC Phone Email Program Intake Year Action
{{ $loop->index + 1 }} @foreach ($users as $user) @if ($user->id === $applicant->user_id) {{ $user->first_name }} {{ $user->last_name }} @endif @endforeach {{ $applicant->applicant_no }} {{ $applicant->applicant_status }} @foreach ($users as $user) @if ($user->id == $applicant->user_id) {{ $user->nrc_passport }} @endif @endforeach @foreach ($users as $user) @if ($user->id == $applicant->user_id) {{ $user->phone }} @endif @endforeach @foreach ($users as $user) @if ($user->id == $applicant->user_id) {{ $user->email }} @endif @endforeach @foreach ($programs as $program) @if ($program->id == $applicant->program_id) {{ $program->program_name }} @endif @endforeach {{ $applicant->entry_year }}
--}} {{ $dataTable->table(['width' => '100%']) }}
@endsection