@extends('maindash2') @section('htmlheader_title') Document Uploader @endsection @section('content')
Document Uploader


{!! Form::open(['url' => 'uploadfile', 'files' => true]) !!}
{!! Form::text('user_id', Auth::user()->id, ['class'=>'form-controll']) !!}
{!! Form::token() !!} {!! Form::label('doc_id', 'Choose Document Type:')!!}
{!! Form::select('doc_id', ['Invoice', 'Contract', 'Sustainability Report', 'Other']) !!}

{!! Form::label('location_name', 'Choose Location Name:') !!} {!! Form::select('location_name', $location, null, ['class' =>'form-control']) !!}
{!! Form::label('file_title', 'Title:') !!} {!! Form::text('file_title', null, ['class' =>'form-control']) !!}
{!! Form::label('file_name', 'Upload:') !!} {!! Form::file('file_name', null, ['class' =>'form-control']) !!}

{!! Form::submit('Upload Document', ['class' => 'btn btn-primary form-control']) !!}
{!! Form::close() !!} @if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@endsection