- {{ Form::label('code', 'Код') }}
+ {{ Form::label('code', 'Код', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.direction.code')]) }}
+ *
- {{ Form::text('code', '', ['class' => 'form-control']) }}
+ {{ Form::text('code', '', ['class' => 'form-control', 'data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.direction.code'), 'required']) }}
- {{ Form::label('slug', 'URL') }}
+ {{ Form::label('slug', 'URL', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.direction.slug')]) }}
- {{ Form::text('slug', '', ['class' => 'form-control']) }}
+ {{ Form::text('slug', '', ['class' => 'form-control', 'data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.direction.slug')]) }}
@if ($errors->any())
@@ -86,10 +95,11 @@
- {{ Form::label('name', 'Название') }}
+ {{ Form::label('name', 'Название', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.direction.name')]) }}
+ *
- {{ Form::text('name', '', ['class' => 'form-control']) }}
+ {{ Form::text('name', '', ['class' => 'form-control', 'data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.direction.name'), 'required']) }}
@if ($errors->any())
@@ -98,10 +108,10 @@
- {{ Form::label('description', 'Описание') }}
+ {{ Form::label('description', 'Описание', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.direction.description')]) }}
- {{ Form::text('description', '', ['class' => 'form-control']) }}
+ {{ Form::text('description', '', ['class' => 'form-control', 'data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.direction.name')]) }}
@if ($errors->any())
@@ -110,14 +120,14 @@
-
- {{ Form::label('budget_places', 'Кол-во бюджетных мест') }}
+ {{ Form::label('budget_places', 'Кол-во бюджетных мест', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.direction.budget_places')]) }}
+ *
- {{ Form::number('budget_places', null, ['class' => 'form-select']) }}
+ {{ Form::number('budget_places', null, ['class' => 'form-control', 'data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.direction.budget_places'), 'required']) }}
@if ($errors->any())
@@ -127,10 +137,11 @@
- {{ Form::label('quota', 'Квота') }}
+ {{ Form::label('quota', 'Квота', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.direction.quota')]) }}
+ *
- {{ Form::number('quota', null, ['class' => 'form-select']) }}
+ {{ Form::number('quota', null, ['class' => 'form-control', 'data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.direction.quota'), 'required']) }}
@if ($errors->any())
@@ -140,10 +151,11 @@
- {{ Form::label('paid_places', 'Кол-во мест по договорам') }}
+ {{ Form::label('paid_places', 'Кол-во мест по договорам', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.direction.paid_places')]) }}
+ *
- {{ Form::number('paid_places', null, ['class' => 'form-select']) }}
+ {{ Form::number('paid_places', null, ['class' => 'form-control', 'data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.direction.paid_places'), 'required']) }}
@if ($errors->any())
@@ -154,10 +166,11 @@
- {{ Form::label('cost_paid_place', 'Стоимость обучения') }}
+ {{ Form::label('cost_paid_place', 'Стоимость обучения', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.direction.cost_paid_place')]) }}
+ *
- {{ Form::number('cost_paid_place', null, ['class' => 'form-select']) }}
+ {{ Form::number('cost_paid_place', null, ['class' => 'form-control', 'data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.direction.cost_paid_place'), 'required']) }}
@if ($errors->any())
@@ -168,10 +181,11 @@
- {{ Form::label('period', 'Период обучения') }}
+ {{ Form::label('period', 'Период обучения', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.direction.period')]) }}
+ *
- {{ Form::text('period', null, ['class' => 'form-select']) }}
+ {{ Form::text('period', null, ['class' => 'form-control', 'data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.direction.period'), 'required']) }}
@if ($errors->any())
@@ -184,10 +198,11 @@
- {{ Form::label('direction_profile', 'Профиль подготовки') }}
+ {{ Form::label('direction_profile', 'Профиль подготовки', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.direction.direction_profile')]) }}
+ *
- {{ Form::select('direction_profiles[]', $directionProfiles, null, ['class' => 'form-control rounded border-gray-300 w-1/3 h-32', 'multiple' => 'multiple']) }}
+ {{ Form::select('direction_profiles[]', $directionProfiles, null, ['class' => 'form-control rounded border-gray-300 w-1/3 h-32', 'multiple' => 'multiple', 'data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.direction.direction_profile'), 'required']) }}
@if ($errors->any())
@@ -204,10 +219,11 @@
- {{ Form::label('entrance-examination[0][examination_type_id]', 'Тип экзамена') }}
+ {{ Form::label('entrance-examination[0][examination_type_id]', 'Тип экзамена', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.entrance-examination.examination_type_id')]) }}
+ *
- {{ Form::select('entrance-examination[0][examination_type_id]', $examination_types, null, ['class' => 'form-select']) }}
+ {{ Form::select('entrance-examination[0][examination_type_id]', $examination_types, null, ['class' => 'form-select', 'data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.entrance-examination.examination_type_id'), 'required']) }}
@if ($errors->any())
@@ -217,10 +233,11 @@
- {{ Form::label('entrance-examination[0][subject_id]', 'Предмет') }}
+ {{ Form::label('entrance-examination[0][subject_id]', 'Предмет', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.entrance-examination.subject_id')]) }}
+ *
- {{ Form::select('entrance-examination[0][subject_id]', $subjects, null, ['class' => 'form-select']) }}
+ {{ Form::select('entrance-examination[0][subject_id]', $subjects, null, ['class' => 'form-select', 'data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.entrance-examination.subject_id'), 'required']) }}
@if ($errors->any())
@@ -230,10 +247,11 @@
- {{ Form::label('entrance-examination[0][subject_type_id]', 'Тип предмета') }}
+ {{ Form::label('entrance-examination[0][subject_type_id]', 'Тип предмета', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.entrance-examination.subject_type_id')]) }}
+ *
- {{ Form::select('entrance-examination[0][subject_type_id]', $subjectTypes, null, ['class' => 'form-select']) }}
+ {{ Form::select('entrance-examination[0][subject_type_id]', $subjectTypes, null, ['class' => 'form-select', 'data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.entrance-examination.subject_type_id'), 'required']) }}
@if ($errors->any())
@@ -243,10 +261,11 @@
- {{ Form::label('entrance-examination[0][scores]', 'Кол-во баллов') }}
+ {{ Form::label('entrance-examination[0][scores]', 'Кол-во баллов', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.entrance-examination.scores')]) }}
+ *
- {{ Form::text('entrance-examination[0][scores]', '', ['class' => 'form-control']) }}
+ {{ Form::number('entrance-examination[0][scores]', '', ['class' => 'form-control', 'data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.entrance-examination.scores'), 'required']) }}
@if ($errors->any())
@@ -256,10 +275,11 @@
- {{ Form::label('entrance-examination[0][position]', 'Позиция') }}
+ {{ Form::label('entrance-examination[0][position]', 'Позиция', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.entrance-examination.position')]) }}
+ *
- {{ Form::text('entrance-examination[0][position]', '', ['class' => 'form-control']) }}
+ {{ Form::number('entrance-examination[0][position]', '', ['class' => 'form-control', 'data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.entrance-examination.position'), 'required']) }}
@if ($errors->any())
@@ -282,6 +302,7 @@
{{ Form::close() }}
@include('admin.catalog.direction.script')
+ @include('layouts.bootstrap_validation')
@endauth
@endsection
diff --git a/resources/views/admin/catalog/faculty/create.blade.php b/resources/views/admin/catalog/faculty/create.blade.php
index fb3a279..1c5f759 100644
--- a/resources/views/admin/catalog/faculty/create.blade.php
+++ b/resources/views/admin/catalog/faculty/create.blade.php
@@ -81,22 +81,5 @@
@endauth
-
+ @include('layouts.bootstrap_validation')
@endsection
diff --git a/resources/views/layouts/bootstrap_validation.blade.php b/resources/views/layouts/bootstrap_validation.blade.php
new file mode 100644
index 0000000..ad135fe
--- /dev/null
+++ b/resources/views/layouts/bootstrap_validation.blade.php
@@ -0,0 +1,18 @@
+