@php $h = 0; @endphp
@foreach($classes as $class)
id, old('class_ids'))) ? ' checked' : '' }}>
@php $h++; @endphp
@endforeach
@if($errors->has('class_ids'))
{{ $errors->first('class_ids') }}
@endif
@foreach($sections as $section)
@endforeach
@if($errors->has('section_ids'))
{{ $errors->first('section_ids') }}
@endif
@foreach($subjects as $subject)
@endforeach
@if($errors->has('subjects_ids'))
{{ $errors->first('subjects_ids') }}
@endif
@if ($errors->has('class'))
{{ $errors->first('class') }}
@endif
@if ($errors->has('section'))
{{ $errors->first('section') }}
@endif
@if ($errors->has('subject'))
{{ $errors->first('subject') }}
@endif