@extends('dashboard.index') @section('contentDashboard') @include('dashboard.page_header') @if (count($errors) > 0)
@foreach ($errors->all() as $error)
{{ $error }}
@endforeach
@endif
{!! Form::model($role, ['method' => 'PATCH','route' => ['roles.update', $role->id]]) !!}
@lang('dashboard.title_name'):
@lang('dashboard.title_permission'):
@foreach($permission as $value)
{{ Form::checkbox('permission[]', $value->id, in_array($value->id, $rolePermissions) ? true : false, array('class' => 'name')) }} {{ $value->name }}
@endforeach
{!! Form::close() !!}
@endsection