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

Создать места

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