@extends('layouts/contentLayoutMaster') @section('title', 'Edit Role') @section('content')

Edit Role

@if ($message = Session::get('success'))
@endif
@csrf {{-- @method('PUT') --}}
@error('role') {{ $message }} @enderror
@error('access_level') {{ $message }} @enderror

is_single == 1) checked @endif>

Give Permissions to Role


Check All {{--
--}}
@foreach ($permissions as $key => $permission) @php if ($key == 'Permissions') { continue; } @endphp
{{ $key }}
@foreach ($permission as $specificPermission) @php try { $rolePermission = $role->permissions ->where('name', $specificPermission['name']) ->first() ->toArray(); } catch (\Throwable $th) { $rolePermission = []; } @endphp {{--
--}} @endforeach @php($iteration_no++) @endforeach
--}}
{{--
Cancel
@endsection @section('page-script') @endsection