@extends('layouts.vertical') @section('css') @endsection @php $is_teacher = ""; $is_teacher_exist = false; if(app('request')->input('t')){ $is_teacher = app('request')->input('t'); } @endphp @section('breadcrumb')

Add new schedule

@endsection @section('content')
@csrf
@if($type == 1)
List of teachers

Tap to select the teachers.

@elseif($type == 2)
List of other staff

Tap to select the other staff members.

@endif
{{--
--}}
@if(isset($rosters) && !empty($rosters)) @foreach($rosters as $teacher)
@php $is_teacher_exist = true; @endphp @endforeach @endif @if(!$is_teacher_exist)

No teachers found

Back
@endif
@if($is_teacher_exist)
To
@endif
@if($is_teacher_exist)
Add break

You can add predefined breaks for selected teachers.

To
@endif @if($is_teacher_exist)
@endif
@endsection @section('script-bottom') @endsection