@extends('layouts.admin.app') @push('css') @endpush @section('page_header') @if ($role) Update Role @else Add Role @endif @endsection @section('content')
@csrf
Role Information
@error('name')
{{ $message }}
@enderror
{{-- @if ($role) @foreach ($role->permissions as $key => $item)
@endforeach @endif @foreach ($permissions as $key => $permission)
@endforeach --}} @foreach ($permissions as $key => $permission)
id,$selected_permission)) checked @endif value="{{$permission->id}}" id="{{$permission->id}}" />
    @foreach ($permission->child as $key => $child)
  • id,$selected_permission)) checked @endif name="permissions[]" value="{{$child->id}}" id="{{$child->id}}" />
  • @endforeach
@endforeach
@error('name')
{{ $message }}
@enderror
@endsection @push('scripts') @endpush