@extends('layouts.master', ['title' => 'Position Report Log']) @section('contents')

{{$position->position_title}} Position Report Log

@if(session()->has('error'))
@endif
@forelse($contacts as $contact) @php $color = 'primary'; $status = ''; if($contact->finally){ if($contact->finally == 'rejected'){ $status = 'Rejected'; $color = 'danger'; } else { $status = format_contact_status($contact->finally); } } elseif($contact->status){ $status = 'Applied'; } else { $status = 'Not Applied'; } @endphp @empty @endforelse
S.No. Candidate Name Candidate Email JD Details Recruiter Email Expected Joining Date Status View Details
{{$loop->iteration}} {{$contact->receiver_name}} {{$contact->receiver_email}} Preview JD {{$contact->sender_email}} {{$contact->doj ? date('jS F, Y', strtotime($contact->doj)) : 'Not Yet Decided'}} {{$status}} @if(($contact->sender_email == auth()->user()->email || get_role_fullname(auth()->user()->role_id) == 'HR') && !empty($contact->rec_id)) @elseif(empty($contact->rec_id)) Not Generated @else Not Authorized @endif
No Record Found
{{$contacts->links()}}
@endsection