@extends('layouts.main') @section('page-title') {{ __('Manage Document') }} @endsection @section('page-breadcrumb') {{ __('Document') }} @endsection @section('page-action')
@stack('addButtonHook') @can('document create') @endcan
@endsection @push('css') @endpush @section('content')
@if (Gate::check('document edit') || Gate::check('document delete')) @endif @foreach ($documents as $document) @php $roles = \Spatie\Permission\Models\Role::find($document->role); @endphp @if (Gate::check('document edit') || Gate::check('document delete')) @endif @endforeach
{{ __('Name') }} {{ __('Document') }} {{ __('Role') }} {{ __('Description') }}{{ __('Action') }}
{{ $document->name }} @if (!empty($document->document)) @else

-

@endif
{{ !empty($roles) ? $roles->name : 'All' }}

{{ !empty($document->description) ? $document->description : '' }}

@can('document edit') @endcan @can('document delete')
{{Form::open(array('route'=>array('document.destroy', $document->id),'class' => 'm-0'))}} @method('DELETE') {{Form::close()}}
@endcan
@endsection