applicant-site/resources/views/admin/catalog/educational_institution/create.blade.php

73 lines
3.8 KiB
PHP
Raw Normal View History

2024-03-12 09:38:42 +03:00
@php use App\Helpers\PositionHelper; @endphp
2024-02-12 15:02:31 +03:00
@extends('layouts.admin_layout')
2024-02-07 10:18:46 +03:00
@section('content')
@auth()
<div class="row">
<div class="col">
<h1 class=""> Создать учебное заведение</h1>
2024-03-12 09:32:57 +03:00
{{ Form::open(['url' => route('educational_institutions.store'), 'method' => 'POST', 'class' => 'needs-validation', 'novalidate']) }}
2024-02-07 10:18:46 +03:00
<div class="col">
<div>
2024-03-12 09:32:57 +03:00
{{ Form::label('position', 'Позиция', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.educational_institutions.position')]) }}
<span class="text-danger">*</span>
2024-02-07 10:18:46 +03:00
</div>
<div class="mt-2">
2024-03-12 09:32:57 +03:00
{{ Form::text('position', PositionHelper::educationalInstitution(), ['class' => 'form-control', 'data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.educational_institutions.position'), 'required']) }}
<div class="invalid-feedback">
Поле "Позиция" обязательно!
</div>
2024-02-07 10:18:46 +03:00
</div>
2024-03-12 09:32:57 +03:00
<div class="text-danger">
2024-02-07 10:18:46 +03:00
@if ($errors->any())
{{ $errors->first('position') }}
@endif
</div>
<div>
2024-03-12 09:32:57 +03:00
{{ Form::label('name', 'Название', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.educational_institutions.name')]) }}
<span class="text-danger">*</span>
2024-02-07 10:18:46 +03:00
</div>
<div class="mt-2">
2024-03-12 09:32:57 +03:00
{{ Form::text('name', '', ['class' => 'form-control', 'data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.educational_institutions.name'), 'required']) }}
<div class="invalid-feedback">
Поле "Название" обязательно!
</div>
2024-02-07 10:18:46 +03:00
</div>
2024-03-12 09:32:57 +03:00
<div class="text-danger">
2024-02-07 10:18:46 +03:00
@if ($errors->any())
{{ $errors->first('name') }}
@endif
</div>
<div>
2024-03-12 09:32:57 +03:00
{{ Form::label('description', 'Описание', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.educational_institutions.description')]) }}
2024-02-07 10:18:46 +03:00
</div>
<div class="mt-2">
2024-03-12 09:32:57 +03:00
{{ Form::text('description', '', ['class' => 'form-control', 'data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.educational_institutions.description')]) }}
2024-02-07 10:18:46 +03:00
</div>
2024-03-12 09:32:57 +03:00
<div class="text-danger">
2024-02-07 10:18:46 +03:00
@if ($errors->any())
{{ $errors->first('description') }}
@endif
</div>
<div class="mt-3">
2024-03-12 09:32:57 +03:00
{{ Form::label('slug', 'URL', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.educational_institutions.slug')]) }}
</div>
<div class="mt-1">
{{ Form::text('slug', '', ['class' => 'form-control']) }}
</div>
2024-03-12 09:32:57 +03:00
<div class="text-danger">
@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