@extends('backend.layouts.master') @section('pageTitle') Section @endsection @section('bodyCssClass') @endsection @section('pageContent') Section @if($section) Update @else Add New @endif Dashboard Section @if($section) Update @else Add @endif Note: Create a teacher and class before create new section. @csrf Name* {{ $errors->first('name') }} Capacity* {{ $errors->first('capacity') }} Class Name {!! Form::select('class_id', $classes, $iclass , ['placeholder' => 'Pick a class...','class' => 'form-control select2', 'required' => 'true']) !!} {{ $errors->first('class_id') }} Teacher Name {!! Form::select('teacher_id', $teachers, $teacher , ['placeholder' => 'Pick a teacher...','class' => 'form-control select2', 'required' => 'true']) !!} {{ $errors->first('teacher_id') }} Note @if($section){{ $section->note }}@endif {{ $errors->first('note') }} @endsection @section('extraScript') @endsection
Note: Create a teacher and class before create new section.