2024-06-11 10:18:38 +03:00
|
|
|
@php use App\Helpers\PositionHelper; @endphp
|
2024-02-14 10:20:40 +03:00
|
|
|
@extends('layouts.admin_layout')
|
2024-01-26 11:15:11 +03:00
|
|
|
@section('content')
|
|
|
|
@auth()
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<h1 class="">Прикрепить файл</h1>
|
2024-02-12 11:25:00 +03:00
|
|
|
{{ Form::open(['url' => route('documents.store'), 'method' => 'POST', 'files'=>'true']) }}
|
2024-01-26 11:15:11 +03:00
|
|
|
<div class="mt-2">
|
2024-02-12 11:25:00 +03:00
|
|
|
{{ Form::label('document', 'Путь к документу') }}
|
2024-01-26 11:15:11 +03:00
|
|
|
</div>
|
|
|
|
<div class="mt-2">
|
2024-02-12 11:25:00 +03:00
|
|
|
{{ Form::file('document', ['class' => 'form-control']) }}
|
2024-01-26 11:15:11 +03:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
@if ($errors->any())
|
2024-02-12 11:25:00 +03:00
|
|
|
{{ $errors->first('document') }}
|
2024-01-26 11:15:11 +03:00
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
<div class="mt-2">
|
|
|
|
{{ Form::label('name', 'Имя файла') }}
|
|
|
|
</div>
|
|
|
|
<div class="mt-2">
|
|
|
|
{{ Form::text('name', '', ['class' => 'form-control']) }}
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
@if ($errors->any())
|
|
|
|
{{ $errors->first('name') }}
|
|
|
|
@endif
|
|
|
|
</div>
|
2024-02-14 10:20:40 +03:00
|
|
|
<div class="mt-2">
|
|
|
|
{{ Form::label('description', 'Описание') }}
|
|
|
|
</div>
|
|
|
|
<div class="mt-2">
|
|
|
|
{{ Form::text('description', '', ['class' => 'form-control']) }}
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
@if ($errors->any())
|
|
|
|
{{ $errors->first('description') }}
|
|
|
|
@endif
|
|
|
|
</div>
|
2024-01-26 11:15:11 +03:00
|
|
|
<div class="mt-2">
|
|
|
|
{{ Form::label('position', 'Позиция') }}
|
|
|
|
</div>
|
|
|
|
<div class="mt-2">
|
2024-06-11 10:18:38 +03:00
|
|
|
{{ Form::text('position', PositionHelper::document(), ['class' => 'form-control']) }}
|
2024-01-26 11:15:11 +03:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
@if ($errors->any())
|
|
|
|
{{ $errors->first('name') }}
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
<div class="mt-2">
|
2024-02-14 10:20:40 +03:00
|
|
|
{{ Form::label('admission_id', 'Пункт экрана приема') }}
|
2024-01-26 11:15:11 +03:00
|
|
|
</div>
|
|
|
|
<div class="mt-2">
|
2024-06-11 10:18:38 +03:00
|
|
|
{{ Form::select('admission_id', $admissions, $lastDocument->admission_id, ['class' => 'form-select']) }}
|
2024-01-26 11:15:11 +03:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
@if ($errors->any())
|
2024-02-14 10:20:40 +03:00
|
|
|
{{ $errors->first('admission_id') }}
|
2024-01-26 11:15:11 +03:00
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
<div class="mt-4">
|
|
|
|
{{ Form::submit('Загрузить файл', ['class' => 'btn btn-primary'])}}
|
|
|
|
</div>
|
|
|
|
{{Form::close()}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endauth
|
|
|
|
@endsection
|