2024-03-04 17:24:12 +03:00
|
|
|
@php use App\Helpers\PositionHelper; @endphp
|
2024-02-12 15:02:31 +03:00
|
|
|
@extends('layouts.admin_layout')
|
2024-02-07 16:30:49 +03:00
|
|
|
@section('content')
|
|
|
|
@auth()
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<h1 class=""> Создать факультет</h1>
|
2024-03-06 15:22:07 +03:00
|
|
|
{{ Form::open(['url' => route('faculties.store'), 'method' => 'POST', 'class' => 'needs-validation', 'novalidate']) }}
|
2024-02-07 16:30:49 +03:00
|
|
|
<div class="col">
|
2024-03-13 10:56:14 +03:00
|
|
|
|
2024-02-07 16:30:49 +03:00
|
|
|
<div class="mt-3">
|
2024-03-06 15:22:07 +03:00
|
|
|
{{ Form::label('position', 'Позиция', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.faculty.position')]) }}
|
2024-03-04 17:24:12 +03:00
|
|
|
<span class="text-danger">*</span>
|
2024-02-07 16:30:49 +03:00
|
|
|
</div>
|
|
|
|
<div class="mt-1">
|
2024-03-06 15:22:07 +03:00
|
|
|
{{ Form::number('position', PositionHelper::faculty(), ['class' => 'form-control', 'data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.faculty.position'), 'required']) }}
|
|
|
|
<div class="invalid-feedback">
|
|
|
|
Поле "Позиция" обязательно!
|
|
|
|
</div>
|
2024-02-07 16:30:49 +03:00
|
|
|
</div>
|
2024-03-04 17:24:12 +03:00
|
|
|
<div class="text-danger">
|
2024-02-07 16:30:49 +03:00
|
|
|
@if ($errors->any())
|
|
|
|
{{ $errors->first('position') }}
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="mt-3">
|
2024-03-06 15:22:07 +03:00
|
|
|
{{ Form::label('name', 'Название', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.faculty.name')]) }}
|
2024-03-04 17:24:12 +03:00
|
|
|
<span class="text-danger">*</span>
|
2024-02-07 16:30:49 +03:00
|
|
|
</div>
|
|
|
|
<div class="mt-1">
|
2024-03-06 15:22:07 +03:00
|
|
|
{{ Form::text('name', '', ['class' => 'form-control', 'data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.faculty.name'), 'required']) }}
|
|
|
|
<div class="invalid-feedback">
|
|
|
|
Поле "Название" обязательно!
|
|
|
|
</div>
|
2024-02-07 16:30:49 +03:00
|
|
|
</div>
|
2024-03-04 17:24:12 +03:00
|
|
|
<div class="text-danger">
|
2024-02-07 16:30:49 +03:00
|
|
|
@if ($errors->any())
|
|
|
|
{{ $errors->first('name') }}
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="mt-3">
|
2024-03-06 15:22:07 +03:00
|
|
|
{{ Form::label('description', 'Описание', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.faculty.description')]) }}
|
2024-02-07 16:30:49 +03:00
|
|
|
</div>
|
|
|
|
<div class="mt-1">
|
2024-03-06 15:22:07 +03:00
|
|
|
{{ Form::text('description', '', ['class' => 'form-control', 'data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.faculty.description')]) }}
|
2024-02-07 16:30:49 +03:00
|
|
|
</div>
|
2024-03-04 17:24:12 +03:00
|
|
|
<div class="text-danger">
|
2024-02-07 16:30:49 +03:00
|
|
|
@if ($errors->any())
|
|
|
|
{{ $errors->first('description') }}
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
<div class="mt-3">
|
2024-03-06 15:22:07 +03:00
|
|
|
{{ Form::label('educational_institution_id', 'Учебное заведение', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.faculty.educational_institution_id')]) }}
|
2024-03-04 17:24:12 +03:00
|
|
|
<span class="text-danger">*</span>
|
2024-02-07 16:30:49 +03:00
|
|
|
</div>
|
|
|
|
<div class="mt-1">
|
2024-03-06 15:22:07 +03:00
|
|
|
{{ Form::select('educational_institution_id', $educationalInstitutions, null, ['class' => 'form-select', 'data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.faculty.educational_institution_id')]) }}
|
2024-02-07 16:30:49 +03:00
|
|
|
</div>
|
2024-03-04 17:24:12 +03:00
|
|
|
<div class="text-danger">
|
2024-02-07 16:30:49 +03:00
|
|
|
@if ($errors->any())
|
|
|
|
{{ $errors->first('educational_institution_id') }}
|
|
|
|
@endif
|
|
|
|
</div>
|
2024-02-12 12:15:46 +03:00
|
|
|
<div class="mt-3">
|
2024-03-06 15:22:07 +03:00
|
|
|
{{ Form::label('slug', 'URL', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.faculty.slug')]) }}
|
2024-02-12 12:15:46 +03:00
|
|
|
</div>
|
|
|
|
<div class="mt-1">
|
2024-03-12 11:22:37 +03:00
|
|
|
{{ Form::text('slug', '', ['class' => 'form-control', 'data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.faculty.slug')]) }}
|
2024-02-12 12:15:46 +03:00
|
|
|
</div>
|
2024-03-04 17:24:12 +03:00
|
|
|
<div class="text-danger">
|
2024-02-12 12:15:46 +03:00
|
|
|
@if ($errors->any())
|
|
|
|
{{ $errors->first('slug') }}
|
|
|
|
@endif
|
|
|
|
</div>
|
2024-02-07 16:30:49 +03:00
|
|
|
<div class="mt-3">
|
2024-03-11 13:07:01 +03:00
|
|
|
{{ Form::submit('Создать', ['class' => 'btn btn-primary']) }}
|
2024-02-07 16:30:49 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ Form::close() }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endauth
|
2024-03-06 17:11:35 +03:00
|
|
|
@include('layouts.bootstrap_validation')
|
2024-02-07 16:30:49 +03:00
|
|
|
@endsection
|