@extends('layouts.administrator.master') @section('title') Create Role and Permission @endsection @section('content')

Create Role and Permission

@csrf
@foreach ($permissions as $groupKey => $group) @foreach ($group as $p) @endforeach @endforeach
Permissions Page Create Edit Delete Show
{{ $groupKey }}
{{ Form::checkbox('permission[]', $p->id, false, ['class' => 'custom-control-input', 'id' => 'customSwitch' . $p->id]) }}
@endsection