diff --git a/resources/views/livewire/show-usuarios.blade.php b/resources/views/livewire/show-usuarios.blade.php index 4a3f9e3..7488f8d 100755 --- a/resources/views/livewire/show-usuarios.blade.php +++ b/resources/views/livewire/show-usuarios.blade.php @@ -76,29 +76,45 @@ Subvendedor @endif Nombre - Email + Email Rol - Ventas + Ventas Saldo - Precios personalizados + Precios personalizados @foreach ($usuarios as $usuario) - + @if (auth()->user()->rol_id == 5) {{ $usuario->subvendedor_relacion->name ?? 'N/A' }} @endif - {{ $usuario->name ?? '' }} - {{ $usuario->email ?? '' }} - {{ $usuario->rol->nombre ?? '' }} - {{ $usuario->historiales_venta_count ?? '' }} - {{ number_format($usuario->saldo->valor ?? 0) ?? 0 }} -

+

+

{{ $usuario->name ?? '' }}

+

{{ $usuario->email ?? '' }}

+
+ + {{ $usuario->email ?? '' }} + + @php + $rolNombre = $usuario->rol->nombre ?? ''; + $rolColor = match($rolNombre) { + 'super' => 'bg-purple-100 text-purple-700', + 'administrador' => 'bg-blue-100 text-blue-700', + 'editor' => 'bg-yellow-100 text-yellow-700', + default => 'bg-gray-100 text-gray-600', + }; + @endphp + {{ $rolNombre }} + + {{ $usuario->historiales_venta_count ?? '' }} + {{ number_format($usuario->saldo->valor ?? 0) }} + +

Tarifas: {{ $usuario->countActiveTarifas() ?? 0 }}, Promos: {{ $usuario->countActivePromos() ?? 0 }}

@@ -114,42 +130,42 @@ @if (auth()->user()->rol->nombre == 'super') - - -
- - - - - - - +
+ + + + + + +
@elseif (Auth::user()->subvendedor && $config->subvendedor) - - -
- - +
+ + @if ($usuario->subvendedor) - + @else - + @endif - - - + + +
@else @@ -167,9 +183,9 @@ x-transition:enter-start="opacity-0 scale-100" x-transition:enter-end="opacity-100 scale-100" x-transition:leave="transition duration-350" x-transition:leave-start="opacity-100 scale-100" x-transition:leave-end="opacity-0 scale-100" - class="absolute backdrop-blur-sm bg-black/20 left-0 bottom-0 top-0 right-0 h-full"> -
-
+ class="fixed inset-0 z-50 backdrop-blur-sm bg-black/20"> +
+

Personalización de precios para {{ $usuario_nombre }}

@@ -233,14 +249,14 @@
+ class="w-full sm-w-[20rem] text-center mt-4 border-separate border-spacing-y-2 bg-white shadow-md rounded-lg mb-2"> - + - + @@ -251,7 +267,7 @@ - @if ($usuarioTarifa->visible !== 'true') @@ -277,7 +292,7 @@ @endif - +
ServicioPlan Oculto TarifaUtilidad
{{ $usuarioTarifa->tarifa->servicio->nombre ?? '' }} + ${{ $usuarioTarifa->precio ?? '' }}${{ $usuarioTarifa->utilidad ?? '' }} -
-
+
+

Personalización de precios para {{ $usuario_nombre }}