@forelse($UnsubscribedStudents as $Student) @php $hiremee_id = App\Helper\HireMeeHelper::customEncrypter($Student->hiremee_id); @endphp
{{$Student->hiremee_id}} ({{$Student->fullname ?? "Not Updated"}})
Name    : {{$Student->fullname ?? "Not Updated"}}
Email Id : {{$Student->email_address ?? "Not Updated"}}
Unsubscribed Date : {{Carbon\Carbon::parse($Student->UnsubscribedStudentDetails[0]->updated_at)->format('d-m-Y')}}
@php $selected_reasons = []; $other_reason_type = ''; $other_reasons = []; @endphp @forelse($Student->UnsubscribedStudentDetails as $reason_details) @if(isset($reason_details->option_value)) @php $other_reason_type = $reason_details->getOtherOptionDetails->reason; $other_reasons[] = $reason_details->option_value; @endphp @else @php $selected_reasons[] = $reason_details->getOtherOptionDetails->reason; @endphp @endif @empty Not Updated @endforelse @php $all_selected_reasons = ''; $all_other_reasons = ''; if(!empty($selected_reasons)){ $all_selected_reasons = implode(', ', $selected_reasons); } if(!empty($other_reasons)){ $all_other_reasons = implode(', ', $other_reasons); } @endphp @if(!empty($all_selected_reasons))
Reason :
{{$all_selected_reasons ?? "Not Updated"}}
@endif @if(!empty($all_other_reasons))
{{$other_reason_type ?? "Not Updated"}}  :
{{$all_other_reasons ?? "Not Updated"}}
@endif
@empty
No Records Found
@endforelse @if($UnsubscribedStudents->hasMorePages())
@endif