54 lines
2.1 KiB
PHP
54 lines
2.1 KiB
PHP
@extends('layouts.admin-layout')
|
|
@section('content')
|
|
|
|
@auth()
|
|
<div class="row">
|
|
<div class="col">
|
|
<h1 class="">Изменить учебное заведение</h1>
|
|
{{ Form::open(['url' => route('educational-institutions.update', $educationalInstitution), 'method' => 'PATCH', 'class' => '']) }}
|
|
<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>
|
|
<div class="mt-4">
|
|
{{ Form::submit('Изменить', ['class' => 'btn btn-primary']) }}
|
|
</div>
|
|
</div>
|
|
{{ Form::close() }}
|
|
</div>
|
|
</div>
|
|
@endauth
|
|
@endsection
|