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