Commit Graph
278 Commits
Author SHA1 Message Date
Lizandro Guarnizo bca737531b up 2026-04-21 18:14:04 -05:00
Lizandro Guarnizo 9108a584cf up 2026-04-18 20:07:42 -05:00
Lizandro Guarnizo d11423c379 up 2026-04-18 14:13:24 -05:00
Lizandro Guarnizo 03207775af up 2026-04-18 14:08:14 -05:00
Juan Felipe Duarte 36bf56b622 Normalize email input for registration and login
Trim and lowercase email before storing or attempting login to avoid mismatches from case or surrounding whitespace. Updated RegisteredUserController@store to save 'email' => strtolower(trim($request->email)) and LoginRequest@authenticate to call Auth::attempt with the normalized email input.
2026-03-02 08:43:12 -05:00
Juan Felipe Duarte 4a44dbc1c1 Implement device and IP tracking for users
Added Device and UserIp models and migrations to store device fingerprints and user IPs with expiration. Updated ShowSavingIp Livewire component and view to capture and persist both IP and device fingerprint. Introduced a scheduled command to clean expired user IPs and registered it in the console kernel. Removed the old migration for storing IPs directly on the users table.
2025-10-25 09:18:56 -05:00
Juan Felipe Duarte a558e393f2 Add rank management feature with CRUD and UI
Introduces a new rank management system including the Rank model, migrations for the ranks table and user IP address, Livewire components for managing and displaying ranks, and related Blade views. Updates navigation and routes to include the new 'Gestión Rangos' section, and enhances the ShareCodeComponent with user data. Also adds a reusable input field component for forms.
2025-10-23 20:28:47 -05:00
Juan Felipe Duarte aa67099449 Add Livewire component to display and save user IP
Introduces ShowSavingIp Livewire component to fetch, display, and save the authenticated user's IP address. Integrates the component into the navigation layout and comments out the unused /ip-test route.
2025-10-18 14:10:11 -05:00
lizandrogd 227b129613 up 2025-10-18 10:43:02 -05:00
Juan Felipe Duarte 4276f1da4e Refactor IP display logic in ShowIpTest component
Simplifies the Livewire component by removing public and local IP properties and related listeners. Updates the Blade view to fetch and display the user's public IP using ipify API, removing previous local IP detection logic.
2025-10-18 10:28:30 -05:00
Juan Felipe Duarte 013061c1d6 Show public and local IP addresses in Livewire view
Added properties and event listener to ShowIpTest component to display both public IP (from Laravel) and local IP (from JavaScript). Updated Blade view to show both IPs and included a script to detect local IP using WebRTC and dispatch it to Livewire.
2025-10-17 16:24:46 -05:00
Juan Felipe Duarte 5ea64cac17 Add IP test page with Livewire component
Introduces a new route and controller method for '/ip-test', rendering a new view that includes a Livewire component to display the user's IP address. Updates navigation layout for improved profile display. Adds related Blade and Livewire files.
2025-10-17 14:50:13 -05:00
Juan Felipe Duarte 0e2a7e9a20 Copy tarifas and promos on user registration
When a new user registers with a referral code, their tarifas and promos are now copied from the referring user. Also refactored Usuario_promo and Usuario_tarifa models to use fillable attributes and improved method formatting. Added Swiper CSS/JS to app layout.
2025-10-16 14:46:17 -05:00
Juan Felipe Duarte 8c50434f31 Restrict price validation to non-super users
Updated price validation logic in ShowTarifas and ShowUsuarios to allow users with the 'super' role to set prices below the base value. Other users will continue to receive an error if the price is less than the base value.
2025-10-16 11:49:20 -05:00
Juan Felipe Duarte 5c04a95792 update codigo referido funcionamiento login, register y dashboard 2025-10-15 16:43:43 -05:00
lizandrogd 75bffed0bb Update ShowPromociones.php 2025-09-03 18:31:49 -05:00
lizandrogd 6611c5b812 Update ShowPromociones.php 2025-09-03 18:29:19 -05:00
Juan Felipe Duarte 7b0aeb6f56 descomentar this consulta 2025-09-03 18:16:53 -07:00
Juan Felipe Duarte 79159afcc3 Fix user-specific pricing and utility in verPromocion
Updated the verPromocion method to correctly retrieve user-specific pricing and utility values from the related tarifaPromo relationship. Adjusted relationship queries to use Auth::id() and rol_id for improved accuracy and consistency.
2025-09-03 18:04:03 -07:00
lizandrogd f773ad7f64 Update ShowPromociones.php 2025-09-02 22:51:46 -05:00
lizandrogd 9971109968 Update ShowPromociones.php 2025-09-02 22:48:43 -05:00
lizandrogd 674c03c982 Update ShowPromociones.php 2025-09-02 22:36:07 -05:00
lizandrogd 279f529d16 up 2025-09-02 22:32:49 -05:00
lizandrogd 5edd42ba6c Update ShowServicios.php 2025-09-02 20:44:19 -05:00
lizandrogd d0f5d0c697 up 2025-09-02 20:39:40 -05:00
Juan Felipe Duarte a5aafd738d update global subvendedor 2025-08-22 10:09:23 -07:00
Juan Felipe Duarte 4042fab30b update subvendedor global 2025-08-22 09:25:37 -07:00
Juan Felipe Duarte 5529804bd2 fix error 2025-08-01 08:56:32 -07:00
Juan Felipe Duarte 65433490de update 2025-07-31 17:45:26 -07:00
Juan Felipe Duarte e11acd95c2 update 2025-07-31 17:42:15 -07:00
Juan Felipe Duarte afbb655a7c update 2025-07-31 17:29:11 -07:00
Juan Felipe Duarte 62031ea48f dd 2025-07-31 17:21:03 -07:00
Juan Felipe Duarte d7789c7f98 update utilidad de promocion 2025-07-31 17:17:52 -07:00
Juan Felipe Duarte c7586cf6cd update 2025-07-31 15:19:22 -07:00
lizandrogd 0239dd3493 Update ShowPlanes.php 2025-07-08 10:02:46 -05:00
lizandrogd a40ea21787 Update ShowServicios.php 2025-07-07 17:42:20 -05:00
lizandrogd 3e7f9542c7 Update ShowServicios.php 2025-07-07 17:36:45 -05:00
lizandrogd a2239647ce Revert "Update ShowServicios.php"
This reverts commit 2c68201f3b.
2025-07-07 17:29:23 -05:00
lizandrogd 2c68201f3b Update ShowServicios.php 2025-07-07 17:27:51 -05:00
lizandrogd 1c20afebb4 Update ShowUsuarios.php 2025-07-07 16:19:53 -05:00
lizandrogd ebacaff6aa Update ShowUsuarios.php 2025-07-07 16:19:33 -05:00
lizandrogd 49311a6ecb up 2025-07-07 15:56:47 -05:00
Juan Felipe Duarte 52eb78c188 roles reservados 2025-06-27 09:25:37 -07:00
Juan Felipe Duarte 82ec6b4b5c Add Livewire saldo header component and update on saldo change 2025-06-26 17:16:04 -07:00
Juan Felipe Duarte f72062fffd saldo restado 2025-06-26 16:50:48 -07:00
Juan Felipe Duarte 83ba4f71da update 2025-06-26 11:05:53 -07:00
Juan Felipe Duarte b8d741dddd vista tabla tarifas y promo dependiendo de cual este abierta 2025-06-25 16:40:20 -07:00
Juan Felipe Duarte 85d18dc4ff Tarifas y promos por usuario (falta el editar en la vista de tarifas)
Introduces the subvendedor_id field to the tarifa_promos table and updates the TarifaPromo model accordingly. Refactors tarifas and promociones management in ShowTarifas and ShowUsuarios Livewire components, including utility calculation, validation, and UI improvements for managing both regular and promo tarifas.
2025-06-25 16:36:32 -07:00
Juan Felipe Duarte e8050ea19f vista tarifas 2025-06-19 17:54:22 -07:00
Juan Felipe Duarte 6eb6e3bd2f antes de comenzar la vista tarifas 2025-06-16 16:30:10 -07:00