@extends('layouts.admin.master') @section('content')

{{ __('content.edit_admin_role') }}

@if ($demo_mode == "on") @include('admin.demo_mode.demo-mode') @else
@method('PUT') @csrf @endif

@php $role_permissions = $role->getAllPermissions(); $checked_permissions = array(); foreach ($role_permissions as $role_permission) { $checked_permissions[] = $role_permission->name; } @endphp @foreach ($permissions as $permission) @if (in_array($permission->name , $checked_permissions)) {{ $permission->name }} @else {{ $permission->name }} @endif @endforeach {{ __('content.set_permissions_for_this_role') }}
{{ __('content.required_fields') }}
@endsection