mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 10:10:48 +01:00
- 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.
33 lines
1.4 KiB
PHP
33 lines
1.4 KiB
PHP
@php
|
|
use App\Models\Champion;
|
|
use App\Models\ChampionSkin;
|
|
@endphp
|
|
|
|
<section class="max-w-screen-xl mx-auto mt-12">
|
|
<h1
|
|
class="text-3xl font-bold text-center text-transparent uppercase sm:text-4xl
|
|
bg-gradient-to-bl from-orange-300 to-orange-500 bg-clip-text">
|
|
Sale Rotation</h1>
|
|
<h2 class="text-lg font-bold text-center text-transparent uppercase sm:text-xl
|
|
bg-gradient-to-bl from-orange-300 to-orange-500 bg-clip-text">All champions & skins on sale</h2>
|
|
|
|
<div class="container mx-auto p-4 flex items-center justify-center mt-3 flex-col text-white">
|
|
<h3 class="text-2xl font-bold text-center text-transparent uppercase sm:text-3xl
|
|
bg-gradient-to-bl from-orange-300 to-orange-500 bg-clip-text">Champions on Sale</h3>
|
|
@foreach($sales['CHAMPION'] as $sale)
|
|
{{json_encode($sale)}}<br>
|
|
@php
|
|
$champion = Champion::where('champion_id', $sale['id'])->first();
|
|
@endphp
|
|
<br>{{ $champion->name }}<br>
|
|
@endforeach
|
|
</div>
|
|
<div class="container mx-auto p-4 flex items-center justify-center mt-3 flex-col text-white">
|
|
<h3 class="text-2xl font-bold text-center text-transparent uppercase sm:text-3xl
|
|
bg-gradient-to-bl from-orange-300 to-orange-500 bg-clip-text">Skins on Sale</h3>
|
|
@foreach($sales['CHAMPION_SKIN'] as $sale)
|
|
{{json_encode($sale)}}<br>
|
|
@endforeach
|
|
</div>
|
|
</section>
|