@extends('application.layouts.master') @section('content')
MY APPLICATION
@if(count($student_proposal) > 0 )
@foreach($student_proposal as $key=>$row)
@if(cn($row,'teacher_details.university')) Flag @else
@endif
{{ cn($row,'teacher_details.first_name','')}} {{ cn($row,'teacher_details.last_name','')}}
{{cn($row,'teacher_details.designation','')}} @if(isset($row->teacher_details->department_name)) {{cn($row,'teacher_details.others_department','')}} @else {{cn($row,'teacher_details.department_name.name','')}} @endif @if($row->teacher_details->university_name) {{cn($row,'teacher_details.university_name','')}} @else {{cn($row,'teacher_details.university.name','')}} @endif
Apply Reference
{{$row->student_apply_ref ?? 'N/A'}}
@if($row->proposal_submit_status ==1)
proposal->document_file)) class="open_modal_page" style="cursor: pointer;" data-url="{{route('modal-get',['name'=>'view_student_proposal','id'=>$row->proposal->id])}}" @endif> {{cn($row,'proposal.title','N/A')}}
{{cn($row,'proposal.proposal_ref','N/A')}} {{cn($row,'proposal.methology','N/A')}} @php $proposal =\DB::table('proposal')->where('id',$row->proposal_id)->first(); if(isset($proposal->department)){ $department =model('Department')::find($proposal->department); } @endphp @if(isset($department)) {{$department->name ?? ''}} @endif {{cn($row,'proposal.status','N/A')}}
@else
No proposal available
@endif
Preferred Start Date :
@if(!empty($row->preferred_start_date)){{ date('M Y', strtotime($row->preferred_start_date))}} @else {{'N/A'}} @endif

Application Status
@if($row->proposal_submit_status==1 && $row->proposal_status ==1) Applied @elseif($row->proposal_submit_status==1 && $row->proposal_status ==2 || $row->proposal_submit_status==1 && $row->proposal_status ==3) In Review @elseif($row->proposal_submit_status==1 && $row->proposal_status ==4) Hold @elseif($row->proposal_submit_status==1 && $row->proposal_status ==5) Interested @elseif($row->proposal_submit_status==1 && $row->proposal_status ==6) Rejected @elseif($proposal =='true' || $publication =='true' || $worK_exp =='true'|| $institution =='true'|| $score =='true') Draft @else Not Yet Submitted @endif
@if($row->proposal_submit_status==1 && $row->proposal_status ==6 && $row->feedback_msg) Rejected, {{ $row->feedback_msg }} @elseif($row->proposal_submit_status==1 && $row->proposal_status ==4) {{'Hold, Further document/information needed'}} @elseif($row->proposal_submit_status==1 && $row->proposal_status ==5) {{'Interested, please submit application'}} @endif
@endforeach
@else
No Application available.
@endif
@endsection