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

Student / {{ isset($studentdetail->first_name) ? ucwords($studentdetail->first_name) : ' ' }} {{ isset($studentdetail->last_name) ? ucwords($studentdetail->last_name) : ' ' }}

( {{ $class_name->class }} )
@if ($studentdetail->profile_photo_path) user @else user @endif
Student Details
@if (!$parentdetail) @endif
{{ isset($studentdetail->first_name) ? ucwords($studentdetail->first_name) : ' ' }} {{ isset($studentdetail->last_name) ? ucwords($studentdetail->last_name) : ' ' }}
{{ isset($studentdetail->email) ? ucwords($studentdetail->email) : ($parentdetail && isset($studentdetail->gender) ? ucwords($studentdetail->gender) : ' Gender not included yet ') }}
{{ isset($studentdetail->phone) ? ucwords($studentdetail->phone) : ($parentdetail && isset($studentdetail->dob) ? calculate_age($studentdetail->dob) . 'y/o ( ' . dateformatter($studentdetail->dob) . ' )' : ' Date of birth not include yet ') }}
{{ isset($studentdetail->gender) ? ucwords($studentdetail->gender) : ' Gender not included yet ' }}
{{ isset($studentdetail->dob) ? calculate_age($studentdetail->dob) . 'y/o ( ' . dateformatter($studentdetail->dob) . ' )' : ' Date of birth not include yet ' }}
@if ($parentdetail != '')
Parent Details
{{ isset($parentdetail->first_name) ? ucwords($parentdetail->first_name) : ' ' }} {{ isset($parentdetail->last_name) ? ucwords($parentdetail->last_name) : ' ' }}
{{ isset($parentdetail->phone) ? ucwords($parentdetail->phone) : ' Mail not included yet ' }}
@endif
{{--
Batch Details
@if (!empty($batchdetail) && count($batchdetail) > 0)
    @foreach ($batchdetail as $detail)
  • {{ucwords($detail->name)}}

    ( {{$detail->class_name}}th Standard )

    Course: {{$coursedetail[$course_ids[$detail->id]]->coursename}}

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

    Mode: {{ucwords($detail->mode)}}

    Time: {{date("h:i a", strtotime($detail->start_time))." to ".date("h:i a", strtotime($detail->end_time))}}

    Duration: {{dateformatter($coursedetail[$course_ids[$detail->id]]->start_date)." to ".dateformatter($coursedetail[$course_ids[$detail->id]]->end_date)}}

    Explore !!!
  • @endforeach @if (count($batchdetail) > 2) View More... @endif
@else @endif
--}}
Notes:
{{-- Student since : {{date('d/m/Y',strtotime($studentdetail->created_at))}} --}}
    @if ($notes !== '' && count($notes) > 0) @php $lastDisplayedDate = null; // To track the last displayed date @endphp @foreach ($notes as $note) @php $noteDate = date('Y-m-d', strtotime($note->created_at)); $noteTime = date('H:i A', strtotime($note->created_at)); $displayDate = $noteDate == date('Y-m-d') ? 'Today' : date('d/m/Y', strtotime($note->created_at)); @endphp {{-- Display the date only once per day --}} @if ($noteDate !== $lastDisplayedDate) @php $lastDisplayedDate = $noteDate; @endphp
  • {{ $displayDate }}
  • @endif {{-- Display individual message --}}
  • {{ $studentdetail->id == $note->added_by ? '( ' . $studentdetail->first_name . ' ' . $studentdetail->last_name . ' )' : '( you )' }}

    {{ $note->notes }}
    {{ $noteTime }}

  • @endforeach @else
    Add some notes for {{ ucwords($studentdetail->first_name) . ' ' . ucwords($studentdetail->last_name) }}
    @endif
Max. 500 Characters
{{--
Exam Details
@if (isset($examdetail) && count($examdetail) > 0)
    @foreach ($examdetail as $index => $detail)
  • {{ $detail->heading }} ( {{ $detail->duration }} min )

    ( {{ $detail->class_name }}th Standard )

    Batch: {{ $detail->batch->name }}

    Subject: {{ $detail->subject->name }}