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

Изменить направление

{{ Form::open(['url' => route('departments.update', $direction), 'method' => 'PATCH', 'class' => '']) }}
{{ Form::label('position', 'Позиция') }}
{{ Form::text('position', $direction->position, ['class' => 'form-control']) }}
@if ($errors->any()) {{ $errors->first('position') }} @endif
{{ Form::label('name', 'Название') }}
{{ Form::text('name', $direction->name, ['class' => 'form-control']) }}
@if ($errors->any()) {{ $errors->first('name') }} @endif
{{ Form::label('description', 'Описание') }}
{{ Form::text('description', $direction->description, ['class' => 'form-control']) }}
@if ($errors->any()) {{ $errors->first('description') }} @endif
{{ Form::label('department_id', 'Факультет') }}
{{ Form::select('department_id', $departments, $direction->department->id, ['class' => 'form-select']) }}
@if ($errors->any()) {{ $errors->first('department_id') }} @endif
{{ Form::label('education_level_id', 'Увовень образования') }}
{{ Form::select('education_level_id', $levels, $direction->educationLevel->id, ['class' => 'form-select']) }}
@if ($errors->any()) {{ $errors->first('education_level_id') }} @endif
{{ Form::label('education_form_id', 'Увовень образования') }}
{{ Form::select('education_form_id', $forms, $direction->educationForm->id, ['class' => 'form-select']) }}
@if ($errors->any()) {{ $errors->first('education_form_id') }} @endif
{{ Form::label('slug', 'URL') }}
{{ Form::text('slug', $direction->slug, ['class' => 'form-control']) }}
@if ($errors->any()) {{ $errors->first('slug') }} @endif
{{ Form::submit('Изменить', ['class' => 'btn btn-primary']) }}
{{ Form::close() }}
@endauth @endsection