@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('name', 'Название') }}
{{ Form::text('name', '', ['class' => 'form-control']) }}
@if ($errors->any()) {{ $errors->first('name') }} @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('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