@include('alert.success')
@if(Auth::user()->role->role_permission('create_documents'))
{{trans('general.nuevo')}} {{trans('general.documento')}}
@endif
{{trans('general.lista')}} {{trans('general.documentos')}}
{!! Form::open(['url' => '/documents/search', 'method' => 'get']) !!}
{!! Form::text('term', null, ['class' => 'form-control pull-right', 'placeholder' => 'Search']) !!}
{!! Form::close() !!}
| ID | @if(Auth::user()->role->layout == 1){{trans('general.usuarios')}} | @endif{{trans('general.tipo')}} {{trans('general.documento')}} | @if(Auth::user()->role->role_permission('edit_documents') || Auth::user()->role->role_permission('delete_documents')) | {{trans('general.accion')}} | @endif
|---|---|---|---|---|
| {{ $document->id }} | @if(Auth::user()->role->layout == 1){{ $document->user ? $document->user->first_name.' '.$document->user->last_name : '' }} | @endif{{ $document->document_type ? $document->document_type->document_type : '' }} | Download | @if(Auth::user()->role->role_permission('edit_documents') || Auth::user()->role->role_permission('delete_documents'))@endif |