@extends('layout_web.layouts') @section('content')
Blog Image
@if ($curriculumSessions->isNotEmpty()) @foreach ($curriculumSessions as $curriculumSession) @foreach ($curriculumSession->onlineSessions as $onlineSession)
Course Image
{{ $onlineSession->duration }}
{{ $curriculumSession->title }}
  • @for ($i = 1; $i <= 5; $i++) @endfor
    {{ $curriculumSession->rating }}
  • Lorem ipsum dolor sit amet consectur elit sed eiusmod tempor incidid unt labore dolore magna.

    • {{ $onlineSession->lessons }} Lessons
    • 20 Students
    @endforeach @endforeach @else

    No curriculum sessions available for you at the moment.

    @endif

    My Curriculums

    @if ($curriculums->isNotEmpty())
    @php $hasCurriculumName = false; @endphp @foreach ($curriculums as $studentContent) @if (!empty($studentContent->curriculum->name)) @php $hasCurriculumName = true; @endphp
    {{ $studentContent->curriculum->name }}

    Description: {{ $studentContent->curriculum->description ?? 'No description available' }}

    Education Stage: {{ $studentContent->educationalStage->name ?? 'No Education Stage available' }}

    Stage Year: {{ $studentContent->stageYear->name ?? 'No Stage Year available' }}

    @endif @endforeach @if (!$hasCurriculumName)

    No curriculum available at the moment.

    @endif
    @else

    No curriculum available at the moment.

    @endif
    @if ($teachers instanceof \Illuminate\Support\Collection) @foreach ($teachers as $teacher)
    {{ $teacher->name }}
    {{ $teacher->experience }} years of experience

    {{ substr($teacher->description, 0, 100) }}..

    @if ($teacher->cv) Download CV @endif

    @if ($teacher->channel_link) Visit Channel @endif

    @endforeach @elseif($teachers) {{-- If $teachers is a single object --}}
    {{ $teachers->name }}
    {{ $teachers->experience }} years of experience

    {{ substr($teachers->description, 0, 100) }}..

    @if ($teacher->cv) Download CV @endif

    @if ($teacher->channel_link) Visit Channel @endif

    @else

    No teacher found.

    @endif
    @if ($appointments->isNotEmpty()) @foreach ($appointments as $appointment)

    Teacher: {{ $appointment->teacher->name ?? 'N/A' }}

    Curriculum: {{ $appointment->curriculum->name ?? 'N/A' }}

    Time: {{ $appointment->time_from }} - {{ $appointment->time_to }}

    @foreach ($appointmentStudents->where('appointment_id', $appointment->id) as $appointmentStudent) @endforeach
    @endforeach @else

    Please Select appointments.

    @endif
    @if ($appointments->isNotEmpty()) @foreach ($appointments as $appointment)

    Teacher: {{ $appointment->teacher->name ?? 'N/A' }}

    Curriculum: {{ $appointment->curriculum->name ?? 'N/A' }}

    Time: {{ $appointment->time_from }} - {{ $appointment->time_to }}

    @endforeach @endif
    @endsection @push('js') @endpush