diff --git a/app/Http/Requests/admin/Catalog/UpdateFacultyRequest.php b/app/Http/Requests/admin/Catalog/UpdateFacultyRequest.php index 42e10b9..5cb1e7c 100644 --- a/app/Http/Requests/admin/Catalog/UpdateFacultyRequest.php +++ b/app/Http/Requests/admin/Catalog/UpdateFacultyRequest.php @@ -15,9 +15,9 @@ class UpdateFacultyRequest extends FormRequest { return [ 'position' => 'required|int|numeric|max:255', - 'name' => ['required', 'string', 'max:255', "unique:faculties,name,{$this->faculty->id}",], + 'name' => ['required', 'string', 'max:255', "unique:faculties,name,{$this->faculty->id}"], 'description' => 'nullable|string', - 'slug' => ['required', 'string', 'max:255', "unique:faculties,slug,{$this->faculty->id}",], + 'slug' => ['required', 'string', 'max:255', "unique:faculties,slug,{$this->faculty->id}"], 'educational_institution_id' => 'required|int|numeric|max:1000', ]; } diff --git a/resources/views/admin/catalog/faculty/edit.blade.php b/resources/views/admin/catalog/faculty/edit.blade.php index 98553cb..7ca3b45 100644 --- a/resources/views/admin/catalog/faculty/edit.blade.php +++ b/resources/views/admin/catalog/faculty/edit.blade.php @@ -7,6 +7,7 @@

Редактировать факультет

{{ Form::open(['url' => route('faculties.update', $faculty), 'method' => 'PATCH', 'class' => 'needs-validation', 'novalidate']) }}
+
{{ Form::label('position', 'Позиция', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.faculty.position')]) }} * @@ -50,6 +51,7 @@ {{ $errors->first('description') }} @endif
+
{{ Form::label('educational_institution_id', 'Учебное заведение', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.faculty.educational_institution_id')]) }} * @@ -62,6 +64,7 @@ {{ $errors->first('educational_institution_id') }} @endif
+
{{ Form::label('slug', 'URL', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.faculty.slug')]) }}