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

Прикрепить файл

{{ Form::open(['url' => route('document_store_from_admission'), 'method' => 'POST', 'files'=>'true']) }}
{{ Form::label('document', 'Путь к документу') }}
{{ Form::file('document', ['class' => 'form-control']) }}
@if ($errors->any()) {{ $errors->first('document') }} @endif
{{ Form::label('name', 'Имя файла') }}
{{ Form::text('name', '', ['class' => 'form-control']) }}
@if ($errors->any()) {{ $errors->first('name') }} @endif
{{ Form::label('description', 'Описание') }}
{{ Form::text('description', '', ['class' => 'form-control']) }}
@if ($errors->any()) {{ $errors->first('description') }} @endif
{{ Form::label('position', 'Позиция') }}
{{ Form::text('position', 0, ['class' => 'form-control']) }}
@if ($errors->any()) {{ $errors->first('name') }} @endif
{{ Form::label('admission_id', 'Пункт экрана приема') }}
{{ Form::select('admission_id', $admissions, $admission->id, ['class' => 'form-select']) }}
@if ($errors->any()) {{ $errors->first('admission_id') }} @endif
{{ Form::submit('Загрузить файл', ['class' => 'btn btn-primary'])}}
{{Form::close()}}

Документы пункта {{ $admission->name }}

@endauth @endsection