@extends('layouts.admin') {{ config('app.name', 'Laravel') }} | Batches @section('main-content')

Batch / {{ isset($user[0]->first_name)?ucwords($user[0]->first_name):" " }} {{ isset($user[0]->last_name)?ucwords($user[0]->last_name):" " }}

@if(isset($parent[0]->profile_photo_path)) user @else user @endif
User Details
{{ isset($user[0]->first_name)?ucwords($user[0]->first_name):" " }} {{ isset($user[0]->last_name)?ucwords($user[0]->last_name):" " }}
{{ isset($user[0]->email)?ucwords($user[0]->email):( isset($parent[0]->email) ?" ( Parent - ".ucwords($parent[0]->email)." ) ":"Not Specified") }}
{{ isset($user[0]->phone)?$user[0]->phone:( isset($parent[0]->phone) ?" ( Parent - ".ucwords($parent[0]->phone)." ) ":"Not Specified") }}
{{ isset($user[0]->gender)?$user[0]->gender:" Not Specified " }}
{{ isset($user[0]->dob)?(calculate_age($user[0]->dob)."y/o ( ".dateformatter($user[0]->dob)." )"):" Not Specified " }}
@if(count($batches) != 0 && !empty($batches)) @for ($i =0 ; $i < count($batches); $i+=2) @for ( $j=$i ; $j<$i+2; $j++) @if ($j
Card image cap

{{strtoupper($batches[$j]->name)}}

( {{$batches[$j]->teacher->first_name ?? 'N/A'}} {{$batches[$j]->teacher->last_name ?? 'N/A' }} )
  • Mode: {{strtoupper($batches[$j]->mode)}}
  • Standard: {{$batches[$j]->class_name}}
  • Start Time: {{date("h:i a", strtotime($batches[$j]->start_time))}}
  • End Time: {{date("h:i a", strtotime($batches[$j]->end_time))}}
View More !!!
@else
@endif @endfor @endfor @else @endif
id Column 1 Column 2
{{$i}}
@if (count($batches) == 0)
No enrollment details available.
@endif
@endsection