@extends('layouts.admin') @section('heading', $role->exists ? 'Edit role' : 'New role') @section('subheading', 'Name the role and tick what it can access.') @section('content')
@csrf @if($role->exists) @method('PUT') @endif @if ($errors->any())
{{ $errors->first() }}
@endif

Permissions

@foreach($permissions as $module => $items)

{{ $module }}

@foreach($items as $permission) @endforeach
@endforeach
Cancel
@endsection @push('scripts') @endpush