@extends('layouts.app') @section('title', 'Modifica utente') @section('breadcrumbs') @include('components.breadcrumbs', ['items' => []]) @endsection @section('content')
@if($errors->any()) @endif
@csrf @method('PUT') {{-- Info utente --}}
Dati account
@error('role')
{{ $message }}
@enderror
@error('name')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
Creato il {{ $user->created_at->format('d/m/Y H:i') }}
Ultimo accesso: @if($user->last_login_at) {{ $user->last_login_at->format('d/m/Y H:i') }} @else mai @endif
Ruolo: @if($user->isSuperAdmin()) SuperAdmin @else Client @endif
{{-- Cambio password --}}
Cambio password — lascia vuoto per non modificare
@error('new_password')
{{ $message }}
@enderror
{{-- Client assegnati --}} @if(!$user->isSuperAdmin() && $clients->isNotEmpty())
Client assegnati
Seleziona i client che questo utente potrà visualizzare.
@foreach($clients as $client)
id, old('client_ids', $assignedClientIds)) ? 'checked' : '' }}>
@endforeach
@error('client_ids')
{{ $message }}
@enderror
@endif
@endsection