@extends('admin.partials.layout') @section('css') @endsection @section('content')

Edit Role

Edit Role & Permission

@csrf
@if($errors->has('name'))

{{ $errors->first('name') }}

@endif
@foreach ($permissions->groupBy('grouping') as $group => $permissions)

{{$group}} & Permission


@foreach ($permissions as $permission)
slug,explode(',',$model->permissions))) checked @endif class="form-check-input" id="{{$permission->slug}}" name="permissions[]" value="{{$permission->slug}}">
@endforeach
@endforeach @if(Auth::user()->permission('roles.edit'))
@endif
@endsection @section('js') @endsection