@extends('home') @section('title') @lang('site.site_name') @endsection @section('styles') @endsection @section('content') {!! Form::open(array('route' => ['admin.role.update',$role->id],'method' => 'put' ,'files' => true ,'class' => 'form-horizontal','id' => 'form-main')) !!}
@if ($errors->has('display_name')) {{ $errors->first('display_name') }} @endif
@if ($errors->has('description')) {{ $errors->first('description') }} @endif
@foreach ($permissions as $permission)
id <=2 ? "disabled" : null}} type="checkbox" value="{{$permission->id}}" {{in_array($permission->id, $rolePermissions) || $role->id <=2 ? "checked" : null}} name="permissions[]"> {{$permission->display_name}}
@endforeach
@if ($errors->has('permissions')) {{ $errors->first('permissions') }} @endif
{!! Form::close() !!} @endsection @section('scripts') @endsection