@if(isset($editChapter) || isset($editLesson))
@csrf @method('PUT') @else @csrf @endif
@if ($errors->has('chapter_name')) {{ $errors->first('chapter_name') }} @endif