@extends('layouts.app1') @section('page-title', __('My Profile')) @section('page-heading', __('My Profile')) @section('breadcrumbs') @stop @section('styles') @stop @section('content')


@include('partials.messages') @php $user = auth()->user(); $userRole = $user->role->name ?? 'guest'; $activeTab = session('tab') ?? 'main'; // Determinar panel según rol solo si no hay tab en sesión if (!session()->has('tab')) { switch($userRole) { case 'liquidacion': $activeTab = 'liquidacion'; break; case 'profesional': $activeTab = 'custom3'; break; case 'avanzado': $activeTab = 'custom2'; break; case 'basico': $activeTab = 'custom1'; break; } } // Forzar cambio de contraseña tiene prioridad $passwordChangeManager = app(\Vanguard\Support\Authorization\PasswordChangeManager::class); if ($user && $passwordChangeManager->isPasswordChangeForcedForUser($user)) { $activeTab = 'login'; } @endphp @if ($passwordChangeManager->isPasswordChangeForcedForUser($user))
@lang('Before continuing please update your password and set a new one.')
@endif
@method('PUT') @csrf @include('user.partials.details', ['profile' => true])
@method('PUT') @csrf @include('user.partials.auth', ['profile' => true])
@if (setting('2fa.enabled'))
@include('user.partials.two-factor')
@endif
@stop @section('scripts') @stop