Cargando

Usuario
@if ((auth()->user()->subvendedor && $config->subvendedor) || in_array(auth()->user()->rol->nombre, ['administrador', 'editor', 'super'])) Añadir usuario @endif @if (in_array(auth()->user()->rol->nombre, ['super', 'administrador'])) Mod. tarifas promos @endif
{{-- -Tabla usuarios - --}} @if (auth()->user()->rol_id == 5) Subvendedor @endif Nombre Email Rol Ventas Saldo Precios personalizados @foreach ($usuarios as $usuario) @if (auth()->user()->rol_id == 5) {{ $usuario->subvendedor_relacion->name ?? 'N/A' }} @endif

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

Email {{ $usuario->email ?? '' }}
Ventas {{ $usuario->historiales_venta_count ?? 0 }}
Tarifas {{ $usuario->countActiveTarifas() ?? 0 }}
Promos {{ $usuario->countActivePromos() ?? 0 }}
{{ $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 }}

@if (auth()->user()->rol->nombre == 'super') @else @if (auth()->user()->subvendedor && $config->subvendedor) @endif @endif @if (auth()->user()->rol->nombre == 'super') @elseif (Auth::user()->subvendedor && $config->subvendedor) @else @endif @endforeach
{{ $usuarios->links() }}
{{-- Panel de acciones del usuario (controlado 100% por Livewire) --}}
@if ($actionMenuUser)

{{ $actionMenuUser->name }}

{{ $actionMenuUser->email }}

@if (auth()->user()->rol->nombre == 'super') @endif @if (auth()->user()->subvendedor && $config->subvendedor) @if ($actionMenuSubvendedor) @else @endif @endif
@endif
{{-- Gestionar precios --}}

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

{{ $estadoTarifa == 1 ? 'Ocultar' : 'Mostrar' }}

Utilidad

@if (auth()->user()->rol->nombre === 'super' || auth()->user()->rol->nombre === 'administrador') @else @endif
@if (!empty($consulta_usuarioTarifas)) @foreach ($consulta_usuarioTarifas as $usuarioTarifa) @if ($usuarioTarifa->visible !== 'true') @else @endif @endforeach @endif
Servicio Oculto Tarifa
{{ $usuarioTarifa->tarifa->servicio->nombre ?? '' }} ${{ $usuarioTarifa->precio ?? '' }}
{{-- Gestionar promocion --}}

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

Utilidad

@if (auth()->user()->rol->nombre === 'super' || auth()->user()->rol->nombre === 'administrador') @else @endif
@if (!empty($consulta_usuarioPromo)) @foreach ($consulta_usuarioPromo as $usuarioPromo) @if ($usuarioPromo->visible != 'true') @else @endif @endforeach @endif
Promocion Oculto Precio Utilidad
{{ $usuarioPromo->promocion->nombre ?? '' }}${{ $usuarioPromo->precio ?? '' }} ${{ $usuarioPromo->utilidad ?? '' }}
{{-- Añadir usuario --}}
@error('nombre') Requerido* @enderror
@error('email') Requerido* @enderror
@error('password') Requerido* @enderror
@error('rol') Requerido* @enderror
{{-- Editar usuario --}}
@error('nombre_edit') Requerido* @enderror
@error('email_edit') Requerido* @enderror
@error('rol_edit') Requerido* @enderror
{{-- Modal contraseña --}}
Cambiar Contraseña
@error('newPassword') {{ 'Diligencie correctamente*' }} @enderror
{{-- Modal add saldo --}}
Recargar saldo
Saldo actual: $

{{ number_format($saldo_actual) }}

Monto a recargar
Tu valor total seria: $

@php $valor_recargar = str_replace([',', '.'], '', $valor_recargar); @endphp @if (!empty($valor_recargar)) {{ number_format((int) $saldo_actual + (int) $valor_recargar) }} @else {{ number_format((int) $saldo_actual) }} @endif

@if (auth()->user()->rol->nombre === 'administrador' || auth()->user()->rol->nombre === 'super') @else @if (auth()->user()->subvendedor && $config->subvendedor) @endif @endif
{{-- Modal quitar saldo --}}
Descontar saldo
Saldo actual: $

{{ number_format($saldo_actual) }}

Monto a descontar
Tu valor total seria: $

{{ number_format((int) $saldo_actual - (int) $valor_recargar) }}

{{-- Modal tarifas --}}
@if (!empty($tarifas)) @foreach ($tarifas as $tarifa) @endforeach @endif
Estado Rol Valor Utilidad
@if ($tarifa->visible == 'activo')
@else
@endif
{{ $tarifa->rol->nombre ?? '' }} {{ number_format($tarifa->precio) ?? 0 }} {{ number_format($tarifa->utilidad) ?? 0 }}
@if ($informacionTarifaRol)
@endif