@extends('layouts.admin_layout') @section('content') @auth()

Изменить Стоимость

{{ Form::open(['url' => route('costs.update', $cost), 'method' => 'PATCH', 'class' => '']) }}
{{ Form::label('position', 'Позиция') }}
{{ Form::text('position', $cost->position, ['class' => 'form-control']) }}
@if ($errors->any()) {{ $errors->first('position') }} @endif
{{ Form::label('description', 'Описание') }}
{{ Form::text('description', $cost->description, ['class' => 'form-control']) }}
@if ($errors->any()) {{ $errors->first('description') }} @endif
{{ Form::label('cost', 'Количество мест') }}
{{ Form::text('cost', $cost->cost, ['class' => 'form-control']) }}
@if ($errors->any()) {{ $errors->first('cost') }} @endif
{{ Form::label('direction_id', 'Направление подготовки') }}
{{ Form::select('direction_id', $directions, $cost->direction->id, ['class' => 'form-select']) }}
@if ($errors->any()) {{ $errors->first('direction_id') }} @endif
{{ Form::label('education_form_id', 'Форма обучения') }}
{{ Form::select('education_form_id', $educationForms, $cost->educationForm->id, ['class' => 'form-select']) }}
@if ($errors->any()) {{ $errors->first('education_form_id') }} @endif
{{ Form::submit('Изменить', ['class' => 'btn btn-primary']) }}
{{ Form::close() }}
@endauth @endsection