@extends('layouts.librenmsv1') @section('title', __('Edit user')) @section('content')
{{ __('permissions.permissions.user_permissons', ['name' => $user->realname ?: $user->username]) }}
Close and return to user management page
@if($deviceCount == 'all')

{{ __('permissions.permissions.device_all') }}

@else

{{ __('Grant access to new device') }}

@csrf
@forelse($devicePermissions as $devicePermission) @empty @endforelse
{{ __('Device') }} {{ __('Action') }}
{{ $devicePermission->displayName() }}
@csrf @method('DELETE')
{{ __('permissions.permissions.none_configured') }}
@endif
@if($deviceGroupCount == 'all')

{{ __('permissions.permissions.device_group_all') }}

@else

{{ __('Grant access to new Device Group') }}

@csrf
@forelse($deviceGroupPermissions as $deviceGroupPermission) @empty @endforelse
{{ __('Device Group') }} {{ __('Action') }}
{{ $deviceGroupPermission->name }}
@csrf @method('DELETE')
{{ __('permissions.permissions.none_configured') }}
@endif
@if($portCount == 'all')

{{ __('permissions.permissions.port_all') }}

@else

{{ __('Grant access to new interface') }}

@csrf
@forelse($portPermissions as $portPermission) @empty @endforelse
{{ __('Port') }} {{ __('Action') }}
{{ $portPermission->device?->displayName() }} - {{ $portPermission->getLabel() }} {{ $portPermission->getDescription() }}
@csrf @method('DELETE')
{{ __('permissions.permissions.none_configured') }}
@endif
@if($billCount == 'all')

{{ __('permissions.permissions.bill_all') }}

@else

{{ __('Grant access to new bill') }}

@csrf
@forelse($billPermissions as $billPermission) @empty @endforelse
{{ __('Bill') }} {{ __('Action') }}
{{ $billPermission->bill_name }}
@csrf @method('DELETE')
{{ __('permissions.permissions.none_configured') }}
@endif
@endsection @section('javascript') @endsection