Roman_applicant-site/resources/views/admin/catalog/direction/edit.blade.php

113 lines
4.6 KiB
PHP
Raw Normal View History

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">
2024-02-14 16:16:44 +03:00
<h1 class="">Изменить направление</h1>
{{ Form::open(['url' => route('directions.update', $direction), 'method' => 'PATCH', 'class' => '']) }}
2024-02-10 11:23:38 +03:00
<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('code', 'Код') }}
</div>
<div class="mt-1">
{{ Form::text('code', $direction->code, ['class' => 'form-control']) }}
</div>
<div>
@if ($errors->any())
{{ $errors->first('code') }}
@endif
</div>
2024-02-10 11:23:38 +03:00
<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">
2024-02-14 16:16:44 +03:00
{{ Form::label('department_id', 'Факультет') }}
2024-02-10 11:23:38 +03:00
</div>
<div class="mt-1">
2024-02-14 16:16:44 +03:00
{{ Form::select('department_id', $departments, $direction->department->id, ['class' => 'form-select']) }}
2024-02-10 11:23:38 +03:00
</div>
<div>
@if ($errors->any())
2024-02-14 16:16:44 +03:00
{{ $errors->first('department_id') }}
2024-02-10 11:23:38 +03:00
@endif
</div>
2024-02-14 16:16:44 +03:00
<div class="mt-3">
{{ Form::label('education_level_id', 'Увовень образования') }}
</div>
<div class="mt-1">
{{ Form::select('education_level_id', $levels, $direction->educationLevel->id, ['class' => 'form-select']) }}
</div>
<div>
@if ($errors->any())
{{ $errors->first('education_level_id') }}
@endif
</div>
2024-02-15 09:58:01 +03:00
<div class="mt-3">
{{ Form::label('education_form_id', 'Увовень образования') }}
</div>
<div class="mt-1">
{{ Form::select('education_form_id', $forms, $direction->educationForm->id, ['class' => 'form-select']) }}
</div>
<div>
@if ($errors->any())
{{ $errors->first('education_form_id') }}
@endif
</div>
<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