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

Edit User Role

Complete the form below to Edit User Role.

@csrf @method('PUT')

Role Information

@foreach($allpermissions->all() as $value) @if($category != $value->category) @endif @if($element != $value->element) @foreach($allpermissions->where('element', $element)->all() as $value2) @endforeach @endif @endforeach
{{ $value->category }} CHECK ALL LIST CREATE EDIT DELETE IMPORT
       {{ $value->description }} {{ Form::checkbox('permission[]', $value2->id, in_array($value2->id, $rolePermissions) ? true : false, array('class' => 'name')) }}
@include('partials.footer')
@endsection