@foreach($data['students'] as $row)
@if($data['idcard']->frontside_bg_image) @else @endif
@if($data['idcard']->student_name)

{{$row->student->first_name.' '.$row->student->last_name}}

@endif @if($data['idcard']->class_name && $data['idcard']->section_name) {{$row->class->name}} ({{$row->section->name}}) @elseif($data['idcard']->class_name) Class: {{$row->class->name}} @elseif($data['idcard']->section_name) Section: {{$row->section->name}} @endif
@if($data['idcard']->student_name)

Admission No: {{$row->student->admission_no}}

@endif @if($data['idcard']->roll_no)

Roll No: {{$row->student->roll_no}}

@endif @if($data['idcard']->dob)

Date of birth: {{date('m/d/Y', strtotime($row->student->dob))}}

@endif @if($data['idcard']->blood_group)

Blood Group: {{$row->student->blood->name}}

@endif
@if($data['idcard']->signature) @endif

{{$data['idcard']->backside_description}}

@if($data['idcard']->expired_date)
EXPIRED: {{date('m/d/Y', strtotime($data['idcard']->expired_date))}}
@endif
@if($data['idcard']->qr_code) @endif
#
@if($data['idcard']->backside_bg_image) @else # @endif
@endforeach