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

Teacher / {{ isset($educator[0]->first_name) ? ucwords($educator[0]->first_name) : ' ' }} {{ isset($educator[0]->last_name) ? ucwords($educator[0]->last_name) : ' ' }}

@if (isset($educator[0]->profile_photo_path)) user @else user @endif
Teacher Details
@if (isset($educator[0]->educationdetails) && $educator[0]->educationdetails != '') @endif @if (isset($educator[0]->experiencedetails) && $educator[0]->experiencedetails != '') @endif
Name : {{ isset($educator[0]->first_name) ? ucwords($educator[0]->first_name) : ' ' }} {{ isset($educator[0]->last_name) ? ucwords($educator[0]->last_name) : ' ' }}
Email : {{ isset($educator[0]->email) ? ucwords($educator[0]->email) : ' Mail not included yet ' }}
Phone No : {{ isset($educator[0]->phone) ? $educator[0]->phone : ' Mobile number not included yet ' }}
Gender : {{ isset($educator[0]->gender) ? $educator[0]->gender : ' Gender not included yet ' }}
Age : {{ isset($educator[0]->dob) ? calculate_age($educator[0]->dob) . ' y/o ( ' . dateformatter($educator[0]->dob) . ' )' : ' Date of birth not included yet ' }}
@if ($educator[0]->educationdetails->education_type == 1) Diploma {{ !empty($educator[0]->educationdetails->name) ? ' - ' . $educator[0]->educationdetails->name : '' }} {{ !empty($educator[0]->educationdetails->specialization) ? ' ( ' . $educator[0]->educationdetails->specialization . ' )' : '' }} @elseif ($educator[0]->educationdetails->education_type == 2) Bachelor's {{ !empty($educator[0]->educationdetails->name) ? ' - ' . $educator[0]->educationdetails->name : '' }} {{ !empty($educator[0]->educationdetails->specialization) ? ' ( ' . $educator[0]->educationdetails->specialization . ' )' : '' }} @elseif ($educator[0]->educationdetails->education_type == 3) Master's {{ !empty($educator[0]->educationdetails->name) ? ' - ' . $educator[0]->educationdetails->name : '' }} {{ !empty($educator[0]->educationdetails->specialization) ? ' ( ' . $educator[0]->educationdetails->specialization . ' )' : '' }} @elseif ($educator[0]->educationdetails->education_type == 4) PHD {{ !empty($educator[0]->educationdetails->name) ? ' - ' . $educator[0]->educationdetails->name : '' }} {{ !empty($educator[0]->educationdetails->specialization) ? ' ( ' . $educator[0]->educationdetails->specialization . ' )' : '' }} @endif @if (!empty($educator[0]->educationdetails->save_pdf)) Documents @endif
@if ($educator[0]->experiencedetails) @if ($educator[0]->experiencedetails->years) {{ $educator[0]->experiencedetails->years }}{{ $educator[0]->experiencedetails->years > 1 ? 'yrs' : 'yr' }} @endif @if ($educator[0]->experiencedetails->months) {{ $educator[0]->experiencedetails->years ? '&' : '' }} {{ $educator[0]->experiencedetails->months }}{{ $educator[0]->experiencedetails->months > 1 ? 'mths' : 'mth' }} @endif @if ($educator[0]->experiencedetails->years || $educator[0]->experiencedetails->months) ( Experience ) @endif @if ($educator[0]->experiencedetails->save_pdf != null) Documents @endif @endif
@if (!empty($subjects))
Subjects:- @for ($i = 0; $i < count($subjects); $i++) {{ ucwords($subjects[$i]->name) }}@if ($i < count($subjects) - 1) , @endif @endfor
@else @endif
Class List
@if (!empty($courses) && count($courses) > 0) @else @endif
@endsection