Skip to content

Interesting Functionalities

Esteban Vergara Giraldo edited this page Sep 25, 2024 · 3 revisions

1. Generate Balanced Reviews Using AI (Gemini)

This feature allows administrators to generate a balanced review summary for specific games using AI technology (Gemini).

  • File: app\Http\Controllers\GameController.php
  • Line: 99
  • File: resources\views\game\show.blade.php
  • Line: 39
  • Route to view game:
    Route::get('/games/{id}', 'App\Http\Controllers\GameController@show')->name('game.show')
  • Route to execute balance generation:
    Route::post('/games/{id}/generate-balance', 'App\Http\Controllers\GameController@generateBalance')->name('game.generateBalance')

image

(As admin, this button will appear)
image

2. Search Game by Name

Users can search for a game by its name, providing a quick and efficient way to find specific titles.

  • File: app\Http\Controllers\GameController.php
  • Line: 64
  • File: resources\views\game\index.blade.php
  • Line: 18
  • Route to view games:
    Route::get('/games', 'App\Http\Controllers\GameController@index')->name('game.index')
  • Route to execute search:
    Route::get('/games/search', 'App\Http\Controllers\GameController@search')->name('game.search')

image

3. View Most Purchased Games

This functionality displays the most purchased games across the platform.

  • File: app\Http\Controllers\GameController.php
  • Line: 77
  • File: resources\views\game\mostPurchased.blade.php
  • Entire file
  • Route:
    Route::get('/games/most-purchased', 'App\Http\Controllers\GameController@mostPurchased')->name('game.mostPurchased')

image

4. View Top 5 Best-Selling Games by Company

Displays the top 5 best-selling games from each company.

  • File: app\Http\Controllers\CompanyController.php
  • Entire file
  • File: resources\views\company\topSellingGames.blade.php
  • Entire file
  • Route:
    Route::get('/companies/top-selling', 'App\Http\Controllers\CompanyController@topSellingGames')->name('company.topSellingGames')

image

5. View the Top 5 Categories with the Most Games

Displays the top 5 categories with the highest number of games available on the platform.

  • File: app\Http\Controllers\CategoryController.php
  • Entire file
  • File: resources\views\category\topCategories.blade.php
  • Entire file
  • Route:
    Route::get('/categories/top-categories', 'App\Http\Controllers\CategoryController@topCategories')->name('category.topCategories')

image