@extends('layouts.master') @section('content')

{{ __("All Departments") }}

@if(Entrust::hasRole('administrator')) @endif @foreach($department as $dep) @if(Entrust::hasRole('administrator')) @endif @endforeach
{{ __('Name') }} {{ __('Description') }}{{ __('Action') }}
{{$dep->name}} {{Str_limit($dep->description, 50)}} {!! Form::open([ 'method' => 'DELETE', 'route' => ['departments.destroy', $dep->id] ]); !!} {!! Form::submit( __('Delete'), ['class' => 'btn btn-danger', 'onclick' => 'return confirm("Are you sure?")']); !!} {!! Form::close(); !!}
@stop