forked from aslan/applicant-site
100 lines
4.0 KiB
PHP
100 lines
4.0 KiB
PHP
@extends('layouts.admin_layout')
|
|
@section('content')
|
|
@auth()
|
|
<div class="row">
|
|
<div class="col">
|
|
<h1 class=""> Создать Направление</h1>
|
|
{{ Form::open(['url' => route('directions.store'), 'method' => 'POST', 'class' => '']) }}
|
|
<div class="col">
|
|
<div class="mt-3">
|
|
{{ Form::label('position', 'Позиция') }}
|
|
</div>
|
|
<div class="mt-1">
|
|
{{ Form::text('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', '', ['class' => 'form-control']) }}
|
|
</div>
|
|
<div>
|
|
@if ($errors->any())
|
|
{{ $errors->first('code') }}
|
|
@endif
|
|
</div>
|
|
|
|
<div class="mt-3">
|
|
{{ Form::label('description', 'Описание') }}
|
|
</div>
|
|
<div class="mt-1">
|
|
{{ Form::text('description', '', ['class' => 'form-control']) }}
|
|
</div>
|
|
<div>
|
|
@if ($errors->any())
|
|
{{ $errors->first('description') }}
|
|
@endif
|
|
</div>
|
|
<div class="mt-3">
|
|
{{ Form::label('department_id', 'Кафедра') }}
|
|
</div>
|
|
<div class="mt-1">
|
|
{{ Form::select('department_id', $departments, null, ['class' => 'form-select']) }}
|
|
</div>
|
|
<div>
|
|
@if ($errors->any())
|
|
{{ $errors->first('department_id') }}
|
|
@endif
|
|
</div>
|
|
|
|
<div class="mt-3">
|
|
{{ Form::label('education_level_id', 'Увовень образования') }}
|
|
</div>
|
|
<div class="mt-1">
|
|
{{ Form::select('education_level_id', $levels, null, ['class' => 'form-select']) }}
|
|
</div>
|
|
<div>
|
|
@if ($errors->any())
|
|
{{ $errors->first('education_level_id') }}
|
|
@endif
|
|
</div>
|
|
|
|
<div class="mt-3">
|
|
{{ Form::label('education_form_id', 'Увовень образования') }}
|
|
</div>
|
|
<div class="mt-1">
|
|
{{ Form::select('education_form_id', $forms, null, ['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', '', ['class' => 'form-control']) }}
|
|
</div>
|
|
<div>
|
|
@if ($errors->any())
|
|
{{ $errors->first('slug') }}
|
|
@endif
|
|
</div>
|
|
<div class="mt-3">
|
|
{{ Form::submit('Создать', ['class' => 'btn btn-primary']) }}
|
|
</div>
|
|
</div>
|
|
{{ Form::close() }}
|
|
</div>
|
|
</div>
|
|
@endauth
|
|
@endsection
|