<x-layout bodyClass="g-sidenav-show bg-gray-200">

  <x-navbars.sidebar_triage
    role="{{ $request->user()->role }}"
    activePage="show_schedules"
    teacher_id="{{ $current_teacher->id }}"
  >
  </x-navbars.sidebar_triage>

  <main
    class="main-content position-relative max-height-vh-100 h-100 border-radius-lg"
  >

    <!-- Navbar -->
    <x-navbars.navs.auth
      titlePage="Schedules"
      role="{{ $request->user()->role }}"
      firstName="{{ $current_teacher->firstName }}"
      last_name="{{ $current_teacher->lastName }}"
    >
    </x-navbars.navs.auth>
    <!-- End Navbar -->

    <div>
      <b>This teacher applied {{ count($schedules) }} subjects.</b>
    </div>

    <div class="container-fluid py-4">
      @foreach ($schedules as $schedule)
        <div>
          {{ $schedule->id }}
          (course duration: {{ $schedule->startTime }} ~
          {{ $schedule->endTime }})
        </div>
      @endforeach

    </div>
    <x-footers.auth></x-footers.auth>
    </div>
  </main>

</x-layout>
