@extends('layouts.customer') @section('content')

Applicant

@if ($message = Session::get('success'))

{{ $message }}

@endif
@if ($errors->any())
Whoops! There were some problems with your input.

@endif
Filter by status:
@if($applicants) @foreach($applicants as $applicant) @endforeach @else

No records found!

@endif
Sr No Name Email Phone Status Action
{{ $applicant->id }} {{ $applicant->first_name }} {{ $applicant->email }} {{ $applicant->phone }} {{ formStatusName($applicant->status) }} @if( $applicant->status == App\Constants\FormStatusConstants::HIRED ) Hired @else
@endif
{{ $applicants->links('vendor.pagination.dore') }}
{{-- @php if(isset($applicant_form->form_fields)) { $form_fields = json_decode($applicant_form->form_fields); //echo '
';
   // print_r($form_fields);
    //echo '
';//die; @endphp

Applicant

Add Applicant Form
@if ($message = Session::get('success'))

{{ $message }}

@endif
@php //echo '
';
                        //print_r($applicants); echo '
'; die; @endphp
Filter by status:
@php $form_fields_data = json_decode($applicant_form->form_fields); $form_fields = array_column( $form_fields_data, 'heading' ); @endphp @if( count( $form_fields ) > 0 ) @foreach( $form_fields as $key => $value ) @endforeach @endif @if($applicants) @foreach($applicants as $applicant) @php $form_data = json_decode($applicant->form_data); @endphp @if( count($form_data) > 0 ) @foreach( $form_data as $key=>$value ) @if( $value->title != $form_fields[$key] ) @else @endif @endforeach @endif @endforeach @else

No records found!

@endif
Restaurant Name{{ $value }}Status Added By Action
{{ $applicant->location->name }} @php if(is_array($value->value)){ $dt = implode(",",$value->value); echo $dt; } else{ echo $value->value; } @endphp {{ formStatusName($applicant->status) }} {{ $applicant->added_by ? 'Back End' : 'Front End' }}
{{ $applicants->links('vendor.pagination.dore') }}
@php } @endphp --}} @endsection @section('script') @endsection