@if(isset($id)) {!! Form::model($data, ['route' => ['document.update', $id], 'method' => 'patch' ]) !!} @else {!! Form::open(['route' => ['document.store'], 'method' => 'post' ]) !!} @endif

{{ $pageTitle }}

{!! Form::close() !!}
@section('bottom_script') @endsection