@extends('layouts.admin') @section('page-title') {{__('Manage Document Type')}} @endsection @section('breadcrumb') @endsection @section('action-btn')
@can('create document type') @endcan
@endsection @section('content')
@include('layouts.hrm_setup')
@if(Gate::check('edit document type') || Gate::check('delete document type')) @endif @foreach ($documents as $document) @if(Gate::check('edit document type') || Gate::check('delete document type')) @endif @endforeach
{{__('Document')}} {{__('Required Field')}}{{__('Action')}}
{{ $document->name }}
@if( $document->is_required == 1 )
{{__('Required')}}
@else
{{__('Not Required')}}
@endif
@can('edit document type') @endcan @can('delete document type')
{!! Form::open(['method' => 'DELETE', 'route' => ['document.destroy', $document->id],'id'=>'delete-form-'.$document->id]) !!} {!! Form::close() !!}
@endcan
@endsection