79 lines
3.5 KiB
PHP
79 lines
3.5 KiB
PHP
@php use App\Helpers\PositionHelper; @endphp
|
|
@extends('layouts.admin_layout')
|
|
@section('content')
|
|
@auth()
|
|
<div class="row">
|
|
<div class="col">
|
|
<h1 class=""> Создать факультет</h1>
|
|
{{ Form::open(['url' => route('faculties.store'), 'method' => 'POST', 'class' => '']) }}
|
|
<div class="col">
|
|
<div class="mt-3">
|
|
{{ Form::label('position', 'Позиция', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.position')]) }}
|
|
<span class="text-danger">*</span>
|
|
</div>
|
|
<div class="mt-1">
|
|
{{ Form::number('position', PositionHelper::faculty(), ['class' => 'form-control', 'data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.position')]) }}
|
|
</div>
|
|
<div class="text-danger">
|
|
@if ($errors->any())
|
|
{{ $errors->first('position') }}
|
|
@endif
|
|
</div>
|
|
|
|
<div class="mt-3">
|
|
{{ Form::label('name', 'Название') }}
|
|
<span class="text-danger">*</span>
|
|
</div>
|
|
<div class="mt-1">
|
|
{{ Form::text('name', '', ['class' => 'form-control']) }}
|
|
</div>
|
|
<div class="text-danger">
|
|
@if ($errors->any())
|
|
{{ $errors->first('name') }}
|
|
@endif
|
|
</div>
|
|
|
|
<div class="mt-3">
|
|
{{ Form::label('description', 'Описание') }}
|
|
</div>
|
|
<div class="mt-1">
|
|
{{ Form::text('description', '', ['class' => 'form-control']) }}
|
|
</div>
|
|
<div class="text-danger">
|
|
@if ($errors->any())
|
|
{{ $errors->first('description') }}
|
|
@endif
|
|
</div>
|
|
<div class="mt-3">
|
|
{{ Form::label('educational_institution_id', 'Учебное заведение') }}
|
|
<span class="text-danger">*</span>
|
|
</div>
|
|
<div class="mt-1">
|
|
{{ Form::select('educational_institution_id', $educationalInstitutions, null, ['class' => 'form-select']) }}
|
|
</div>
|
|
<div class="text-danger">
|
|
@if ($errors->any())
|
|
{{ $errors->first('educational_institution_id') }}
|
|
@endif
|
|
</div>
|
|
<div class="mt-3">
|
|
{{ Form::label('slug', 'URL') }}
|
|
</div>
|
|
<div class="mt-1">
|
|
{{ Form::text('slug', '', ['class' => 'form-control']) }}
|
|
</div>
|
|
<div class="text-danger">
|
|
@if ($errors->any())
|
|
{{ $errors->first('slug') }}
|
|
@endif
|
|
</div>
|
|
<div class="mt-3">
|
|
{{ Form::submit('создать', ['class' => 'btn btn-primary']) }}
|
|
</div>
|
|
</div>
|
|
{{ Form::close() }}
|
|
</div>
|
|
</div>
|
|
@endauth
|
|
@endsection
|