289 lines
12 KiB
PHP
289 lines
12 KiB
PHP
@extends('layouts.admin_layout')
|
|
@section('content')
|
|
@auth()
|
|
<h1 class=""> Создать Направление</h1>
|
|
{{ Form::open(['url' => route('directions.store'), 'method' => 'POST', 'class' => '']) }}
|
|
<div class="row">
|
|
<div class="col">
|
|
<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>
|
|
<div class="col">
|
|
<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>
|
|
<div class="col">
|
|
<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>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col">
|
|
<div class="mt-3">
|
|
{{ Form::label('position', 'Позиция') }}
|
|
</div>
|
|
<div class="mt-1">
|
|
{{ Form::number('position', '', ['class' => 'form-control']) }}
|
|
</div>
|
|
<div>
|
|
@if ($errors->any())
|
|
{{ $errors->first('position') }}
|
|
@endif
|
|
</div>
|
|
</div>
|
|
<div class="col">
|
|
<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>
|
|
<div class="col">
|
|
<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>
|
|
|
|
<div class="mt-3">
|
|
{{ Form::label('name', 'Название') }}
|
|
</div>
|
|
<div class="mt-1">
|
|
{{ Form::text('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', '', ['class' => 'form-control']) }}
|
|
</div>
|
|
<div>
|
|
@if ($errors->any())
|
|
{{ $errors->first('description') }}
|
|
@endif
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
<div class="col">
|
|
<div class="mt-3">
|
|
{{ Form::label('budget_places', 'Кол-во бюджетных мест') }}
|
|
</div>
|
|
<div class="mt-1">
|
|
{{ Form::number('budget_places', null, ['class' => 'form-select']) }}
|
|
</div>
|
|
<div>
|
|
@if ($errors->any())
|
|
{{ $errors->first('budget_places') }}
|
|
@endif
|
|
</div>
|
|
</div>
|
|
<div class="col">
|
|
<div class="mt-3">
|
|
{{ Form::label('quota', 'Квота') }}
|
|
</div>
|
|
<div class="mt-1">
|
|
{{ Form::number('quota', null, ['class' => 'form-select']) }}
|
|
</div>
|
|
<div>
|
|
@if ($errors->any())
|
|
{{ $errors->first('quota') }}
|
|
@endif
|
|
</div>
|
|
</div>
|
|
<div class="col">
|
|
<div class="mt-3">
|
|
{{ Form::label('paid_places', 'Кол-во мест по договорам') }}
|
|
</div>
|
|
<div class="mt-1">
|
|
{{ Form::number('paid_places', null, ['class' => 'form-select']) }}
|
|
</div>
|
|
<div>
|
|
@if ($errors->any())
|
|
{{ $errors->first('paid_places') }}
|
|
@endif
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col">
|
|
<div class="mt-3">
|
|
{{ Form::label('cost_paid_place', 'Стоимость обучения') }}
|
|
</div>
|
|
<div class="mt-1">
|
|
{{ Form::number('cost_paid_place', null, ['class' => 'form-select']) }}
|
|
</div>
|
|
<div>
|
|
@if ($errors->any())
|
|
{{ $errors->first('cost_paid_place') }}
|
|
@endif
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col">
|
|
<div class="mt-3">
|
|
{{ Form::label('period', 'Период обучения') }}
|
|
</div>
|
|
<div class="mt-1">
|
|
{{ Form::text('period', null, ['class' => 'form-select']) }}
|
|
</div>
|
|
<div>
|
|
@if ($errors->any())
|
|
{{ $errors->first('period') }}
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col">
|
|
<div class="mt-3">
|
|
{{ Form::label('direction_profile', 'Профиль подготовки') }}
|
|
</div>
|
|
<div class="mt-1">
|
|
{{ Form::select('direction_profiles[]', $directionProfiles, null, ['class' => 'form-control rounded border-gray-300 w-1/3 h-32', 'multiple' => 'multiple']) }}
|
|
</div>
|
|
<div>
|
|
@if ($errors->any())
|
|
{{ $errors->first('direction_profile') }}
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<h4 class="mt-3">Добавить вступительные испытания</h4>
|
|
|
|
<div class="text-center align-items-center entrance-examination" id="entrance-examination"
|
|
name="entrance-examination">
|
|
<div class="row">
|
|
<div class="col">
|
|
<div class="mt-3">
|
|
{{ Form::label('entrance-examination[0][examination_type_id]', 'Тип экзамена') }}
|
|
</div>
|
|
<div class="mt-1">
|
|
{{ Form::select('entrance-examination[0][examination_type_id]', $examination_types, null, ['class' => 'form-select']) }}
|
|
</div>
|
|
<div>
|
|
@if ($errors->any())
|
|
{{ $errors->first('entrance-examination[0][examination_type_id]') }}
|
|
@endif
|
|
</div>
|
|
</div>
|
|
<div class="col">
|
|
<div class="mt-3">
|
|
{{ Form::label('entrance-examination[0][subject_id]', 'Предмет') }}
|
|
</div>
|
|
<div class="mt-1 col">
|
|
{{ Form::select('entrance-examination[0][subject_id]', $subjects, null, ['class' => 'form-select']) }}
|
|
</div>
|
|
<div>
|
|
@if ($errors->any())
|
|
{{ $errors->first('entrance-examination[0][subject_id]') }}
|
|
@endif
|
|
</div>
|
|
</div>
|
|
<div class="col">
|
|
<div class="mt-3">
|
|
{{ Form::label('entrance-examination[0][subject_type_id]', 'Тип предмета') }}
|
|
</div>
|
|
<div class="mt-1 col">
|
|
{{ Form::select('entrance-examination[0][subject_type_id]', $subjectTypes, null, ['class' => 'form-select']) }}
|
|
</div>
|
|
<div>
|
|
@if ($errors->any())
|
|
{{ $errors->first('entrance-examination[0][subject_type_id]') }}
|
|
@endif
|
|
</div>
|
|
</div>
|
|
<div class="col">
|
|
<div class="mt-3">
|
|
{{ Form::label('entrance-examination[0][scores]', 'Кол-во баллов') }}
|
|
</div>
|
|
<div class="mt-1 col">
|
|
{{ Form::text('entrance-examination[0][scores]', '', ['class' => 'form-control']) }}
|
|
</div>
|
|
<div>
|
|
@if ($errors->any())
|
|
{{ $errors->first('entrance-examination[0][scores]') }}
|
|
@endif
|
|
</div>
|
|
</div>
|
|
<div class="col">
|
|
<div class="mt-3">
|
|
{{ Form::label('entrance-examination[0][position]', 'Позиция') }}
|
|
</div>
|
|
<div class="mt-1 col">
|
|
{{ Form::text('entrance-examination[0][position]', '', ['class' => 'form-control']) }}
|
|
</div>
|
|
<div>
|
|
@if ($errors->any())
|
|
{{ $errors->first('entrance-examination[0][position]') }}
|
|
@endif
|
|
</div>
|
|
</div>
|
|
<div class="col align-items-end">
|
|
<div class="mt-3">
|
|
{{ Form::label('btn', 'Действия') }}
|
|
</div>
|
|
<button type="button" class="btn btn-success col" name="add" id="add">Добавить</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="mt-3 mb-3">
|
|
{{ Form::submit('Создать Направление', ['class' => 'btn btn-primary']) }}
|
|
</div>
|
|
{{ Form::close() }}
|
|
</div>
|
|
@include('admin.catalog.direction.script')
|
|
@endauth
|
|
@endsection
|
|
|
|
|