65 lines
2.7 KiB
PHP
65 lines
2.7 KiB
PHP
|
@extends('layouts.admin-layout')
|
||
|
@section('content')
|
||
|
|
||
|
@auth()
|
||
|
<div class="row">
|
||
|
<div class="col">
|
||
|
<h1 class=""> Создать факультет</h1>
|
||
|
{{ Form::open(['url' => route('faculties.update', $faculty), 'method' => 'PATCH', 'class' => '']) }}
|
||
|
<div class="col">
|
||
|
<div class="mt-3">
|
||
|
{{ Form::label('position', 'Позиция') }}
|
||
|
</div>
|
||
|
<div class="mt-1">
|
||
|
{{ Form::text('position', $faculty->position, ['class' => 'form-control']) }}
|
||
|
</div>
|
||
|
<div>
|
||
|
@if ($errors->any())
|
||
|
{{ $errors->first('position') }}
|
||
|
@endif
|
||
|
</div>
|
||
|
|
||
|
<div class="mt-3">
|
||
|
{{ Form::label('name', 'Название') }}
|
||
|
</div>
|
||
|
<div class="mt-1">
|
||
|
{{ Form::text('name', $faculty->name, ['class' => 'form-control']) }}
|
||
|
</div>
|
||
|
<div>
|
||
|
@if ($errors->any())
|
||
|
{{ $errors->first('name') }}
|
||
|
@endif
|
||
|
</div>
|
||
|
|
||
|
<div class="mt-3">
|
||
|
{{ Form::label('description', 'Описание') }}
|
||
|
</div>
|
||
|
<div class="mt-1">
|
||
|
{{ Form::text('description', $faculty->description, ['class' => 'form-control']) }}
|
||
|
</div>
|
||
|
<div>
|
||
|
@if ($errors->any())
|
||
|
{{ $errors->first('description') }}
|
||
|
@endif
|
||
|
</div>
|
||
|
<div class="mt-3">
|
||
|
{{ Form::label('educational_institution_id', 'Учебное заведение') }}
|
||
|
</div>
|
||
|
<div class="mt-1">
|
||
|
{{ Form::select('educational_institution_id', $educationalInstitutions, $faculty->educationalInstitution->id, ['class' => 'form-select']) }}
|
||
|
</div>
|
||
|
<div>
|
||
|
@if ($errors->any())
|
||
|
{{ $errors->first('educational_institution_id') }}
|
||
|
@endif
|
||
|
</div>
|
||
|
<div class="mt-3">
|
||
|
{{ Form::submit('создать', ['class' => 'btn btn-primary']) }}
|
||
|
</div>
|
||
|
</div>
|
||
|
{{ Form::close() }}
|
||
|
</div>
|
||
|
</div>
|
||
|
@endauth
|
||
|
@endsection
|