2024-02-07 10:18:46 +03:00
|
|
|
@extends('layouts.admin-layout')
|
|
|
|
@section('content')
|
|
|
|
@auth()
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<h1 class="">Изменить учебное заведение</h1>
|
2024-02-12 14:55:17 +03:00
|
|
|
{{ Form::model($educationalInstitution, ['route' => ['educational_institutions.update', $educationalInstitution], 'method' => 'PATCH', 'class' => '']) }}
|
2024-02-07 10:18:46 +03:00
|
|
|
<div class="col">
|
|
|
|
<div>
|
|
|
|
{{ Form::label('position', 'Позиция') }}
|
|
|
|
</div>
|
|
|
|
<div class="mt-2">
|
|
|
|
{{ Form::text('position', $educationalInstitution->position, ['class' => 'form-control']) }}
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
@if ($errors->any())
|
|
|
|
{{ $errors->first('position') }}
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
{{ Form::label('name', 'Название') }}
|
|
|
|
</div>
|
|
|
|
<div class="mt-2">
|
|
|
|
{{ Form::text('name', $educationalInstitution->name, ['class' => 'form-control']) }}
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
@if ($errors->any())
|
|
|
|
{{ $errors->first('name') }}
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
{{ Form::label('description', 'Описание') }}
|
|
|
|
</div>
|
|
|
|
<div class="mt-2">
|
|
|
|
{{ Form::text('description', $educationalInstitution->description, ['class' => 'form-control']) }}
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
@if ($errors->any())
|
|
|
|
{{ $errors->first('description') }}
|
|
|
|
@endif
|
|
|
|
</div>
|
2024-02-12 14:55:17 +03:00
|
|
|
<div class="mt-3">
|
|
|
|
{{ Form::label('slug', 'URL') }}
|
|
|
|
</div>
|
|
|
|
<div class="mt-1">
|
|
|
|
{{ Form::text('slug', $educationalInstitution->slug, ['class' => 'form-control']) }}
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
@if ($errors->any())
|
|
|
|
{{ $errors->first('slug') }}
|
|
|
|
@endif
|
|
|
|
</div>
|
2024-02-07 10:18:46 +03:00
|
|
|
<div class="mt-4">
|
|
|
|
{{ Form::submit('Изменить', ['class' => 'btn btn-primary']) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ Form::close() }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endauth
|
|
|
|
@endsection
|