@extends('layouts.dashboard') @section('title-content') {{ config('app.name') }} |Departments >> Create @endsection @section('content')

@lang('app.intro-text')

{!! Form::open([ 'route' => 'departments.store', 'class' => 'create-departments', 'method' => 'POST', 'role' => 'form', ]) !!}
{!! Form::label('faculty_id', 'Select Faculty') !!} {!! Form::select( 'faculty_id', $faculties, null, $errors->has('faculty_id') ? ['class' => 'form-control is-invalid', 'id' => 'faculty_id'] : ['class' => 'form-control', 'id' => 'faculty_id'], ) !!}
{!! Form::label('department_name', 'Department Name*') !!} {!! Form::text( 'department_name', old('department_name'), $errors->has('department_name') ? ['placeholder' => 'Department Name', 'class' => 'form-control is-invalid'] : ['placeholder' => 'Department Name', 'class' => 'form-control'], ) !!} @if ($errors->has('department_name')) {{ $errors->first('department_name') }} @endif
{{ Form::button('Submit', ['type' => 'submit', 'class' => 'btn btn-lg btn-success pull-right']) }}
{{ Form::close() }}
@endsection @section('scripts') @endsection