@extends('layouts.panel') @section('title', 'Perfil de Dueño - Piter') @section('content') @php $user = Auth::guard('admin')->user() ?? Auth::user(); $avatarUrl = 'https://ui-avatars.com/api/?name=' . urlencode($user->nombre_completo ?? 'Admin') . '&background=1e293b&color=fff'; if ($user && !empty($user->foto_url) && $user->foto_url !== 'null') { $cleanPath = str_replace(['uploads / ', 'uploads/', 'uploads\ ', 'uploads\\'], '', $user->foto_url); $cleanPath = trim(str_replace('\\', '/', $cleanPath)); if (str_starts_with($cleanPath, '/')) $cleanPath = substr($cleanPath, 1); if (!str_starts_with($cleanPath, 'http')) { $avatarUrl = url('/api/Security/uploads/' . $cleanPath); } else { $avatarUrl = $cleanPath; } } @endphp
Control de Personal
Seguridad de Cuenta
Datos de Perfil
Actualizar Accesos