@extends('layouts.app', ['activePage' => 'document', 'titlePage' => __('documents')]) @section('content')
@csrf @method('put')

{{ __('Edit Document') }}

{!! Form::select('company_id', $company, $document->company_id,['class' => 'form-control', 'placeholder' => 'Select Company', 'required']) !!} @if ($errors->has('company_id')) {{ $errors->first('company_id') }} @endif
{!! Form::select('document_type_id', $documentType, $document->document_type_id,['class' => 'form-control', 'placeholder' => 'Select Document Type', 'required']) !!} @if ($errors->has('document_type_id')) {{ $errors->first('document_type_id') }} @endif
@if($document->file_name)
@endif
@if ($errors->has('document')) {{ $errors->first('description') }} @endif
@if ($errors->has('description')) {{ $errors->first('description') }} @endif
@endsection