@extends('admin.master') @section('title', $role ? 'Edit Role' : 'Add Role') @section('body')

{{ $role ? 'Edit Role Form' : 'Add Role Form' }}

@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf @if($role) @method('PUT') @endif
@foreach($actions as $label) @endforeach @php($checked = old('permissions', $selected)) @foreach($modules as $module => $moduleLabel) @foreach($actions as $action => $label) @php($permission = $module.'.'.$action) @endforeach @endforeach
Module{{ $label }}
{{ $moduleLabel }}
@endsection