netgescon-day0/resources/views/profile/edit.blade.php

42 lines
1.9 KiB
PHP
Executable File

<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>Profilo Account - NetGescon</title>
@vite(['resources/css/app.css', 'resources/js/app.js'])
</head>
<body class="min-h-screen bg-gray-100 text-gray-900">
<div class="max-w-5xl mx-auto p-4 md:p-8">
<div class="flex items-center justify-between mb-4">
<h1 class="text-xl md:text-2xl font-semibold">Profilo Account</h1>
@if (auth()->check() && auth()->user()->hasRole('condomino'))
<a href="{{ route('condomino.dashboard') }}" class="text-sm text-blue-700 hover:underline">Torna area condomino</a>
@elseif (auth()->check() && (auth()->user()->hasRole('admin') || auth()->user()->hasRole('amministratore') || auth()->user()->hasRole('collaboratore')))
<a href="{{ route('admin.dashboard') }}" class="text-sm text-blue-700 hover:underline">Torna dashboard</a>
@endif
</div>
<p class="text-sm text-gray-600 mb-6">Da questa pagina puoi aggiornare email e password per accesso da desktop e cellulare.</p>
<div class="space-y-6">
<div class="p-4 md:p-6 bg-white shadow rounded-lg">
@include('profile.partials.update-profile-information-form')
</div>
<div class="p-4 md:p-6 bg-white shadow rounded-lg">
@include('profile.partials.update-password-form')
</div>
<div class="p-4 md:p-6 bg-white shadow rounded-lg">
@include('profile.partials.two-factor-authentication-form')
</div>
<div class="p-4 md:p-6 bg-white shadow rounded-lg">
@include('profile.partials.delete-user-form')
</div>
</div>
</div>
</body>
</html>