72 lines
4.0 KiB
PHP
72 lines
4.0 KiB
PHP
@extends('layouts.admin_layout')
|
|
@section('content')
|
|
@auth()
|
|
<div class="row">
|
|
<div class="col">
|
|
<h1 class="">Изменить учебное заведение</h1>
|
|
{{ Form::model($educationalInstitution, ['route' => ['educational_institutions.update', $educationalInstitution], 'method' => 'PATCH', 'class' => 'needs-validation', 'novalidate']) }}
|
|
<div class="col">
|
|
<div class="mt-2">
|
|
{{ Form::label('position', 'Позиция', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.educational_institutions.position')]) }}
|
|
<span class="text-danger">*</span>
|
|
</div>
|
|
<div class="mt-1">
|
|
{{ Form::number('position', $educationalInstitution->position, ['class' => 'form-control', 'data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.educational_institutions.position'), 'required']) }}
|
|
<div class="invalid-feedback">
|
|
Поле "Позиция" обязательно!
|
|
</div>
|
|
</div>
|
|
<div class="text-danger">
|
|
@if ($errors->any())
|
|
{{ $errors->first('position') }}
|
|
@endif
|
|
</div>
|
|
|
|
<div class="mt-2">
|
|
{{ Form::label('name', 'Название', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.educational_institutions.name')]) }}
|
|
<span class="text-danger">*</span>
|
|
</div>
|
|
<div class="mt-1">
|
|
{{ Form::text('name', $educationalInstitution->name, ['class' => 'form-control', 'data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.educational_institutions.name'), 'required']) }}
|
|
<div class="invalid-feedback">
|
|
Поле "Название" обязательно!
|
|
</div>
|
|
</div>
|
|
<div class="text-danger">
|
|
@if ($errors->any())
|
|
{{ $errors->first('name') }}
|
|
@endif
|
|
</div>
|
|
|
|
<div class="mt-2">
|
|
{{ Form::label('description', 'Описание', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.educational_institutions.description')]) }}
|
|
</div>
|
|
<div class="mt-1">
|
|
{{ Form::text('description', $educationalInstitution->description, ['class' => 'form-control', 'data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.educational_institutions.description')]) }}
|
|
</div>
|
|
<div class="text-danger">
|
|
@if ($errors->any())
|
|
{{ $errors->first('description') }}
|
|
@endif
|
|
</div>
|
|
<div class="mt-2">
|
|
{{ Form::label('slug', 'URL', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.educational_institutions.slug')]) }}
|
|
</div>
|
|
<div class="mt-1">
|
|
{{ Form::text('slug', $educationalInstitution->slug, ['class' => 'form-control', 'data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.educational_institutions.slug')]) }}
|
|
</div>
|
|
<div class="text-danger">
|
|
@if ($errors->any())
|
|
{{ $errors->first('slug') }}
|
|
@endif
|
|
</div>
|
|
<div class="mt-4">
|
|
{{ Form::submit('Изменить', ['class' => 'btn btn-primary']) }}
|
|
</div>
|
|
</div>
|
|
{{ Form::close() }}
|
|
</div>
|
|
</div>
|
|
@endauth
|
|
@endsection
|