@foreach($departamentos as $departamento) deleted_at) class="danger" @else @endif > {{ $departamento->id }} {{ $departamento->nombre}} @if($btn['color'] == 'btn-danger') @if(\Auth::user()->id == 1 || strstr(Auth::user()->permisos['departamentos'], 'u')) {!! link_to_route( 'departamento.edit', $title = 'Editar', $parameters = ['id' => $departamento->id], $attributes = ['class' => 'btn btn-xs btn-primary'] ) !!} @endif @endif @if(\Auth::user()->id == 1 || strstr(Auth::user()->permisos['departamentos'], 'd')) {!! Form::open(['route' => ['departamento.destroy', $departamento->id], 'method' => 'DELETE', 'style' => 'display:inline']) !!} {!! Form::submit($btn['value'], ['class' => 'btn '.$btn['color'].' btn-xs']) !!} {!! Form::close() !!} @endif @endforeach