2024-02-12 15:02:31 +03:00
|
|
|
@extends('layouts.admin_layout')
|
2024-02-10 11:23:38 +03:00
|
|
|
@section('content')
|
|
|
|
|
|
|
|
@auth()
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<h1 class=""> Создать кафедру</h1>
|
|
|
|
{{ Form::open(['url' => route('departments.update', $direction), 'method' => 'PATCH', 'class' => '']) }}
|
|
|
|
<div class="col">
|
|
|
|
<div class="mt-3">
|
|
|
|
{{ Form::label('position', 'Позиция') }}
|
|
|
|
</div>
|
|
|
|
<div class="mt-1">
|
|
|
|
{{ Form::text('position', $direction->position, ['class' => 'form-control']) }}
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
@if ($errors->any())
|
|
|
|
{{ $errors->first('position') }}
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="mt-3">
|
|
|
|
{{ Form::label('name', 'Название') }}
|
|
|
|
</div>
|
|
|
|
<div class="mt-1">
|
|
|
|
{{ Form::text('name', $direction->name, ['class' => 'form-control']) }}
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
@if ($errors->any())
|
|
|
|
{{ $errors->first('name') }}
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="mt-3">
|
|
|
|
{{ Form::label('description', 'Описание') }}
|
|
|
|
</div>
|
|
|
|
<div class="mt-1">
|
|
|
|
{{ Form::text('description', $direction->description, ['class' => 'form-control']) }}
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
@if ($errors->any())
|
|
|
|
{{ $errors->first('description') }}
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
<div class="mt-3">
|
|
|
|
{{ Form::label('educational_institution_id', 'Факультет') }}
|
|
|
|
</div>
|
|
|
|
<div class="mt-1">
|
|
|
|
{{ Form::select('faculty_id', $departments, $direction->department->id, ['class' => 'form-select']) }}
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
@if ($errors->any())
|
|
|
|
{{ $errors->first('educational_institution_id') }}
|
|
|
|
@endif
|
|
|
|
</div>
|
2024-02-12 10:58:48 +03:00
|
|
|
<div class="mt-3">
|
|
|
|
{{ Form::label('slug', 'URL') }}
|
|
|
|
</div>
|
|
|
|
<div class="mt-1">
|
|
|
|
{{ Form::text('slug', $direction->slug, ['class' => 'form-control']) }}
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
@if ($errors->any())
|
|
|
|
{{ $errors->first('slug') }}
|
|
|
|
@endif
|
|
|
|
</div>
|
2024-02-10 11:23:38 +03:00
|
|
|
<div class="mt-3">
|
|
|
|
{{ Form::submit('Изменить', ['class' => 'btn btn-primary']) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ Form::close() }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endauth
|
|
|
|
@endsection
|