@extends('layouts.app') @section('content')

@if (isset($lesson)) تعديل حصة @else أضافة حصة @endif

@csrf @if (isset($lesson)) @method('PATCH') @endif
@if (auth()->user()->type != 'teacher')
@endif
@if (auth()->user()->type != 'teacher')
active ? 'checked' : null) : null) }} value="1" class="form-check-input @error('active') is-invalid @enderror" type="checkbox" role="switch" id="flexSwitchCheckDefault">
@endif
@endsection