@extends('backend.layouts.app') @section('title') {{ __('edit') }} @endsection @section('content')

{{ __('edit') }}

{{ __('back') }}
@method('PUT') @csrf
@error('name') {{ $message }} @enderror

@php $i=1; @endphp @foreach ($permission_groups as $group) @php $permissionsInGroup = App\Models\Admin::getpermissionsByGroupName($group->name); $j = 1; @endphp
@foreach ($permissionsInGroup as $permission)
hasPermissionTo($permission->name) ? 'checked' : '' }} name="permissions[]" class="custom-control-input" type="checkbox" id="permission_checkbox_{{ $permission->id }}" value="{{ $permission->name }}">
@php $j++; @endphp @endforeach

@php $i++; @endphp @endforeach
@endsection @section('script') @endsection