@extends('layouts.librenmsv1')
@section('title', __('preferences.title'))
@section('content')
@if ($errors->any())
@foreach ($errors->all() as $error)
- {{ $error }}
@endforeach
@endif
@if($can_change_password)
@endif
@config('auth.socialite.configs')
@foreach (\App\Facades\LibrenmsConfig::get('auth.socialite.configs', []) as $provider => $config)
@endforeach
@endconfig
@config('twofactor')
@if($twofactor)
@else
@endif
@endconfig
@forelse($user->roles->map(fn($r) => Str::title(str_replace('-', ' ', $r->name))) as $role)
{{ $role }}
@empty
{{ __('No roles!') }}
@endforelse
@if(auth()->user()->hasRole('admin'))
{{ __('Global Administrative Access') }}
@elseif(Gate::allows('viewAll', \App\Models\Device::class))
{{ __('Global Viewing Access') }}
@else
@forelse($devices as $device)
@empty
{{ __('No access!') }}
@endforelse
@endif
@endsection
@section('javascript')
@endsection
@section('scripts')
@endsection
@section('css')
@endsection