@extends('layouts.librenmsv1') @section('title', __('preferences.title')) @section('content')
{{ __('User Preferences') }} @if ($errors->any())
@endif @if($can_change_password)
@csrf
@endif
@csrf
* {{ __('Translation not fully supported') }}
@config('auth.socialite.configs') @foreach (\App\Facades\LibrenmsConfig::get('auth.socialite.configs', []) as $provider => $config)
{{ csrf_field() }}
@endforeach
@endconfig @config('twofactor') @if($twofactor)
@csrf
@if($twofactor['counter'] !== false)
@endif

@csrf
@else
@csrf
@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