@foreach($students as $student)
{{----}}
{{ Auth::user()->school->name }}
Year : {{$academic->name}}
Cell : {{Auth::user()->school->phone}}
Name :
{{$student->FullName}}
Class :
{{optional(optional($student->studentAcademicLatest)->standardLink)->StandardSection}}
Address :
{{$student->userprofile->address}},
{{$student->userprofile->city->name}},
{{$student->userprofile->pincode}}
Parent name :
@if(count($student->parents)>0) {{$student->parents[0]['userParent']['userprofile']['firstname'].' '.$student->parents[0]['userParent']['userprofile']['lastname'].'('.ucfirst($student->parents[0]['userParent']->getParentDetails()['relation']).')'}} @endif

ID : {{optional($student->studentAcademicLatest)->roll_number}}

D.O.B
{{ \Carbon\Carbon::parse($student->userprofile->date_of_birth)->format('d-m-Y') }}
Mobile :
{{$student->mobile_no}}
Blood Group :
@if($student->userprofile->blood_group!=null) {{$student->userprofile->blood_group}} VE @else - @endif
Signature of Principal
@if( $loop->iteration % 1 == 0 ) @php echo '
'; @endphp @endif @endforeach