80 lines
3.2 KiB
PHP
80 lines
3.2 KiB
PHP
@extends('layouts.admin_layout')
|
|
@section('content')
|
|
@auth()
|
|
<div class="row">
|
|
<div class="col">
|
|
<h1 class="">Изменить Стоимость</h1>
|
|
{{ Form::open(['url' => route('periods.update', $period), 'method' => 'PATCH', 'class' => '']) }}
|
|
<div class="col">
|
|
|
|
<div class="mt-3">
|
|
{{ Form::label('position', 'Позиция') }}
|
|
</div>
|
|
<div class="mt-1">
|
|
{{ Form::text('position', $period->position, ['class' => 'form-control']) }}
|
|
</div>
|
|
<div>
|
|
@if ($errors->any())
|
|
{{ $errors->first('position') }}
|
|
@endif
|
|
</div>
|
|
|
|
<div class="mt-3">
|
|
{{ Form::label('description', 'Описание') }}
|
|
</div>
|
|
<div class="mt-1">
|
|
{{ Form::text('description', $period->description, ['class' => 'form-control']) }}
|
|
</div>
|
|
<div>
|
|
@if ($errors->any())
|
|
{{ $errors->first('description') }}
|
|
@endif
|
|
</div>
|
|
|
|
<div class="mt-3">
|
|
{{ Form::label('period', 'Срок обучения') }}
|
|
</div>
|
|
<div class="mt-1">
|
|
{{ Form::text('period', $period->period, ['class' => 'form-control']) }}
|
|
</div>
|
|
<div>
|
|
@if ($errors->any())
|
|
{{ $errors->first('period') }}
|
|
@endif
|
|
</div>
|
|
|
|
<div class="mt-3">
|
|
{{ Form::label('direction_id', 'Направление подготовки') }}
|
|
</div>
|
|
<div class="mt-1">
|
|
{{ Form::select('direction_id', $directions, $period->direction->id, ['class' => 'form-select']) }}
|
|
</div>
|
|
<div>
|
|
@if ($errors->any())
|
|
{{ $errors->first('direction_id') }}
|
|
@endif
|
|
</div>
|
|
|
|
<div class="mt-3">
|
|
{{ Form::label('education_form_id', 'Форма обучения') }}
|
|
</div>
|
|
<div class="mt-1">
|
|
{{ Form::select('education_form_id', $educationForms, $period->educationForm->id, ['class' => 'form-select']) }}
|
|
</div>
|
|
<div>
|
|
@if ($errors->any())
|
|
{{ $errors->first('education_form_id') }}
|
|
@endif
|
|
</div>
|
|
|
|
|
|
<div class="mt-3">
|
|
{{ Form::submit('Изменить', ['class' => 'btn btn-primary']) }}
|
|
</div>
|
|
</div>
|
|
{{ Form::close() }}
|
|
</div>
|
|
</div>
|
|
@endauth
|
|
@endsection
|