Commit Graph

11 Commits

Author SHA1 Message Date
Rico van Zelst
68d18311b4 feat: refactor code and improve readability 2025-03-04 12:50:19 +01:00
StyleCI Bot
e05dd6201a Apply fixes from StyleCI 2024-06-18 10:44:33 +00:00
Rico van Zelst
68dd3dd2f8 fix: Handle null response in SaleController index method
- Add try-catch block to handle null response from API
- Log errors and return appropriate HTTP responses
- Update error message in 503.blade.php to show exception message if available
2024-06-18 12:31:21 +02:00
StyleCI Bot
919923111f Apply fixes from StyleCI 2024-04-18 17:44:20 +00:00
Rico van Zelst
267a2e4b67 feat: Add LMI API integration for fetching sales data
- Integrate LMI API to fetch current sales data using the provided API key.
- Update SaleController to use Http facade for making API requests.
- Modify services configuration to include LMI API key.
2024-04-18 19:44:09 +02:00
Rico van Zelst
984690b758 fix temporary 2024-04-17 12:59:25 +02:00
StyleCI Bot
8fa00e2ef6 Apply fixes from StyleCI 2024-03-18 17:48:57 +00:00
Rico
b2dedb56c9 Apply fixes from StyleCI 2024-01-05 23:14:56 +00:00
Rico van Zelst
85e3c4ff2e feat(controllers): optimize caching and view data passing
- Refactored the ChampionController, ChampionSkinController, HomeController, SaleController, SummonerEmoteController, and SummonerIconController to use arrow functions for cache callbacks.
- Updated the view data passing in the ChampionController, ChampionSkinController, HomeController, PostsController, SaleController, SummonerEmoteController, and SummonerIconController to use associative arrays instead of compact().
- Removed unused imports from web.php.
2024-01-06 00:15:19 +01:00
Rico
8fa2d066c8 Apply fixes from StyleCI 2023-12-05 14:41:37 +00:00
Rico van Zelst
48c74fb4d6 feat(sales): WIP: add SaleController, Current_sales component, and view
- Added a new file `SaleController.php` in the `app/Http/Controllers` directory to handle sales-related logic.
- Created a new file `Current_sales.php` in the `app/View/Components/Sales` directory to define the `Current_sales` component.
- Added a new file `current_sales.blade.php` in the `resources/views/components/sales` directory to display the current sales.
- Modified the `web.php` routes file to include a route for accessing the sales page.

These changes introduce functionality related to displaying and managing sales data on the website.
2023-12-05 13:35:59 +01:00