@extends('layouts.admin.layout') @section('content')

Id card

Print
@include('partials.message')
@foreach($students as $user)

{{ Auth::user()->school->name }}

Year : {{$academic->name}}

Cell : {{Auth::user()->school->phone}}

Name :

{{ ucfirst($user->FullName) }}

Class :

{{optional(optional($user->studentAcademicLatest)->standardLink)->StandardSection}}

Address :

{{$user->userprofile->address}},
{{$user->userprofile->city->name}}, {{$user->userprofile->pincode}}

Parent name :

@if(count($user->parents)>0) {{$user->parents[0]['userParent']['userprofile']['firstname'].' '.$user->parents[0]['userParent']['userprofile']['lastname'].'('.ucfirst($user->parents[0]['userParent']->getParentDetails()['relation']).')'}} @endif

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

D.O.B

{{ optional($user->userprofile)->date_of_birth ? \Carbon\Carbon::parse($user->userprofile->date_of_birth)->format('d-m-Y') : '' }}

Mobile :

{{ $user->mobile_no }}

Blood Group :

@if($user->userprofile->blood_group!=null) {{ucwords($user->userprofile->blood_group)}} VE @else - @endif

Signature of Principal
@endforeach
@endsection