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

Изменить документ

{{ Form::open(['url' => route('documents.update', $document), 'method' => 'PATCH', 'files'=>'true']) }}
{{ Form::label('name', 'Имя документа') }}
{{ Form::text('name', $document->name, ['class' => 'form-control']) }}
@if ($errors->any()) {{ $errors->first('name') }} @endif
{{ Form::label('description', 'Описание') }}
{{ Form::text('description', $document->description, ['class' => 'form-control']) }}
@if ($errors->any()) {{ $errors->first('description') }} @endif
{{ Form::label('position', 'Позиция') }}
{{ Form::text('position', $document->position, ['class' => 'form-control']) }}
@if ($errors->any()) {{ $errors->first('name') }} @endif
{{ Form::label('admission_id', 'Пункт экрана приема') }}
{{ Form::select('admission_id', $admissions, $document->admission_id, ['class' => 'form-select']) }}
@if ($errors->any()) {{ $errors->first('admission_id') }} @endif
{{ Form::submit('Изменить', ['class' => 'btn btn-primary'])}}
{{Form::close()}}
@endauth @endsection