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

Parent / {{ isset($parent[0]->first_name) ? ucwords($parent[0]->first_name) : ' ' }} {{ isset($parent[0]->last_name) ? ucwords($parent[0]->last_name) : ' ' }} {{-- {{isset($parent[0]->created_at)?$parent[0]->created_at->format('d-m-Y ( h : i a )'):""}} --}}

@if (isset($parent[0]->profile_photo_path)) user @else user @endif
Primary Parent Details
Name : {{ isset($primary_parent->first_name) ? ucwords($primary_parent->first_name) : ' ' }} {{ isset($primary_parent->last_name) ? ucwords($primary_parent->last_name) : ' ' }}
Email : {{ isset($primary_parent->email) ? ucwords($primary_parent->email) : ' Mail not included yet ' }}
Phone No : {{ isset($primary_parent->phone_number) ? $primary_parent->phone_number : ' Mobile number not included yet ' }}
Age : {{ isset($primary_parent->dob) ? calculate_age($primary_parent->dob) . 'y/o ( ' . dateformatter($primary_parent->dob) . ' )' : ' Date of birth not included yet ' }}
Gender : {{ isset($primary_parent->gender) ? ucwords($primary_parent->gender) : ' Gender not included yet ' }}
Relation : {{ isset($primary_parent->relation) ? ucwords($primary_parent->relation) : ' Relation not included yet ' }}
Occupation : {{ isset($primary_parent->occupation) ? ucwords($primary_parent->occupation) : ' Occupation not included yet ' }}
@if (isset($primary_parent->aadhar_card)) Aadhar Card @else Aadhar Card not included yet @endif
@if (isset($secondary_parent) && $secondary_parent != '' && $secondary_parent->user_image) user @else user @endif
Secondary Parent Details
@if (isset($secondary_parent) && $secondary_parent != '') @else @endif
Name : {{ isset($secondary_parent->first_name) ? ucwords($secondary_parent->first_name) : ' ' }} {{ isset($secondary_parent->last_name) ? ucwords($secondary_parent->last_name) : ' ' }}
Email : {{ isset($secondary_parent->email) ? ucwords($secondary_parent->email) : ' Mail not included yet ' }}
Phone No : {{ isset($secondary_parent->phone_number) ? $secondary_parent->phone_number : ' Mobile number not included yet ' }}
Age : {{ isset($secondary_parent->dob) ? calculate_age($secondary_parent->dob) . 'y/o ( ' . dateformatter($secondary_parent->dob) . ' )' : ' Date of birth not included yet ' }}
Gender : {{ isset($secondary_parent->gender) ? ucwords($secondary_parent->gender) : ' Gender not included yet ' }}
Relation : {{ isset($secondary_parent->relation) ? ucwords($secondary_parent->relation) : ' Relation not included yet ' }}
Occupation : {{ isset($secondary_parent->occupation) ? ucwords($secondary_parent->occupation) : ' Occupation not included yet ' }}
@if (isset($secondary_parent->aadhar_card)) Aadhar Card @else Aadhar Card not included yet @endif
Same as Primary Parent
@if (isset($gaurdian) && isset($gaurdian->user_image)) user @else user @endif
Guardian Details
Name : {{ isset($gaurdian->first_name) ? ucwords($gaurdian->first_name) : ' ' }} {{ isset($gaurdian->last_name) ? ucwords($gaurdian->last_name) : ' ' }}
Email : {{ isset($gaurdian->email) && $gaurdian->email != '' ? ucwords($gaurdian->email) : ' Mail not included yet ' }}
Phone No : {{ isset($gaurdian->phone_number) ? $gaurdian->phone_number : ' Mobile number not included yet ' }}
Relation : @if (isset($gaurdian->relation) && count($get_relation) == 2) {{ ucwords($get_relation[0]) . ' - ' . ucwords($get_relation[1]) }} @elseif(isset($gaurdian->relation)) {{ ucwords($gaurdian->relation) }} @else Relation not included yet @endif
Children List
@if (!empty($children) && count($children) > 0) @else @endif
{{--
Recent Enrollments
@if (isset($enrollments) && count($enrollments) > 0) @else @endif
--}} {{-- Below code is hide because It need more time. Will do it later. --}} {{--
Recent Enrollments
@if (isset($enrollments) && count($enrollments) > 0) @else @endif
Recently Added Exams
@if (isset($exams) && count($exams) > 0)
    @foreach ($exams as $data)
  • {{ ucwords($data->heading) }}

    Duration: {{ $data->duration }} min

    Due Date: {{ dateformatter($data->duedate) }}

    Subject Name: {{ ucwords($data->subject->name) }}

    Batch Name: {{ ucwords($data->batch->name) }}

  • @endforeach
@else @endif
Recently Added Assignments
@if (isset($assignments) && count($assignments) > 0)
    @foreach ($assignments as $data)
  • {{ ucwords($data->heading) }}

    Standard: {{ $data->class_name }}

    Due Date: {{dateformatter($data->submission_date)}}

    Subject Name: {{ ucwords($data->subject->name) }}

    Batch Name: {{ ucwords($data->batch->name) }}

  • @endforeach
@else @endif
--}}
@endsection