@php use App\Helpers\PositionHelper; @endphp @extends('layouts.admin_layout') @section('content') @auth()

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

{{ Form::open(['url' => route('direction_descriptions.store'), 'method' => 'POST', 'files'=>'true', 'class' => 'needs-validation', 'novalidate']) }}
{{ Form::label('direction_code', 'Направление', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.direction.department_id')]) }} *
{{ Form::select('direction_code', $directionCodes, null, ['class' => 'form-select', 'data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.direction.department_id'), 'required']) }}
Поле "Направление" обязательно!
@if ($errors->any()) {{ $errors->first('direction_code') }} @endif
{{ Form::label('file', 'Путь к Файлу', ['data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.direction.department_id')]) }} *
{{ Form::file('file', ['class' => 'form-control', 'data-bs-toggle' => "tooltip", 'data-bs-title' => __('tooltips.direction.department_id'), 'required']) }}
Поле "Путь к документу" обязательно!
@if ($errors->any()) {{ $errors->first('file') }} @endif
{{ Form::label('file_name', 'Имя файла') }}
{{ Form::text('file_name', '', ['class' => 'form-control']) }}
@if ($errors->any()) {{ $errors->first('name') }} @endif
{{ Form::label('position', 'Позиция') }}
{{ Form::text('position', PositionHelper::directionDescription(), ['class' => 'form-control']) }}
@if ($errors->any()) {{ $errors->first('position') }} @endif
{{ Form::submit('Загрузить файл', ['class' => 'btn btn-primary'])}}
{{Form::close()}}
@endauth @endsection