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

Создать кафедру

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