76 lines
3.7 KiB
PHP
76 lines
3.7 KiB
PHP
@extends('layouts.admin_layout')
|
|
@section('content')
|
|
|
|
@auth()
|
|
<div class="row">
|
|
<div class="col">
|
|
<h1 class="">Изменить предмет</h1>
|
|
{{ Form::open(['url' => route('subjects.update', $subject), 'method' => 'PATCH', 'class' => 'needs-validation', 'novalidate']) }}
|
|
<div class="col">
|
|
|
|
<div class="mt-3">
|
|
{{ Form::label('position', 'Позиция', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.subjects.position')]) }}
|
|
<span class="text-danger">*</span>
|
|
</div>
|
|
<div class="mt-1">
|
|
{{ Form::number('position', $subject->position, ['class' => 'form-control', 'data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.subjects.position'), 'required']) }}
|
|
<div class="invalid-feedback">
|
|
Поле "Позиция" обязательно!
|
|
</div>
|
|
</div>
|
|
<div class="text-danger">
|
|
@if ($errors->any())
|
|
{{ $errors->first('position') }}
|
|
@endif
|
|
</div>
|
|
|
|
<div class="mt-3">
|
|
{{ Form::label('name', 'Название', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.faculty.name')]) }}
|
|
<span class="text-danger">*</span>
|
|
</div>
|
|
<div class="mt-1">
|
|
{{ Form::text('name', $subject->name, ['class' => 'form-control', 'data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.faculty.name'), 'required']) }}
|
|
<div class="invalid-feedback">
|
|
Поле "Название" обязательно!
|
|
</div>
|
|
</div>
|
|
<div class="text-danger">
|
|
@if ($errors->any())
|
|
{{ $errors->first('name') }}
|
|
@endif
|
|
</div>
|
|
|
|
<div class="mt-3">
|
|
{{ Form::label('description', 'Описание', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.faculty.description')]) }}
|
|
</div>
|
|
<div class="mt-1">
|
|
{{ Form::text('description', $subject->description, ['class' => 'form-control', 'data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.faculty.description')]) }}
|
|
</div>
|
|
<div class="text-danger">
|
|
@if ($errors->any())
|
|
{{ $errors->first('description') }}
|
|
@endif
|
|
</div>
|
|
|
|
<div class="mt-3">
|
|
{{ Form::label('slug', 'URL', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.faculty.slug')]) }}
|
|
</div>
|
|
<div class="mt-1">
|
|
{{ Form::text('slug', $subject->slug, ['class' => 'form-control','data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.faculty.slug')]) }}
|
|
</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
|