@extends('layouts.admin_layout') @section('content') @auth()

Создать Направление

{{ Form::open(['url' => route('directions.store'), 'method' => 'POST', 'class' => '']) }}
{{ Form::label('position', 'Позиция') }}
{{ Form::text('position', '', ['class' => 'form-control']) }}
@if ($errors->any()) {{ $errors->first('position') }} @endif
{{ Form::label('code', 'Название') }}
{{ Form::text('code', '', ['class' => 'form-control']) }}
@if ($errors->any()) {{ $errors->first('code') }} @endif
{{ Form::label('description', 'Описание') }}
{{ Form::text('description', '', ['class' => 'form-control']) }}
@if ($errors->any()) {{ $errors->first('description') }} @endif
{{ Form::label('department_id', 'Кафедра') }}
{{ Form::select('department_id', $departments, null, ['class' => 'form-select']) }}
@if ($errors->any()) {{ $errors->first('department_id') }} @endif
{{ Form::label('education_level_id', 'Увовень образования') }}
{{ Form::select('education_level_id', $levels, null, ['class' => 'form-select']) }}
@if ($errors->any()) {{ $errors->first('education_level_id') }} @endif
{{ Form::label('education_form_id', 'Увовень образования') }}
{{ Form::select('education_form_id', $forms, null, ['class' => 'form-select']) }}
@if ($errors->any()) {{ $errors->first('education_form_id') }} @endif
{{ Form::label('slug', 'URL') }}
{{ Form::text('slug', '', ['class' => 'form-control']) }}
@if ($errors->any()) {{ $errors->first('slug') }} @endif
{{ Form::submit('Создать', ['class' => 'btn btn-primary']) }}
{{ Form::close() }}
@endauth @endsection