Skip to content

Commit

Permalink
Update aside.blade.php
Browse files Browse the repository at this point in the history
  • Loading branch information
yosoymitxel authored Sep 9, 2023
1 parent aece76d commit d4b0178
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions resources/views/layouts/aside.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,36 +12,6 @@
<h2 class="text-muted text-sm mt-3">Descarga múltiples mp3 con MultitubeMP3</h2>
</div>
</section>

<?php
$arrJuegos = json_decode(sc_url_curl('https://www.gamerpower.com/api/giveaways?type=game'))
?>
@if(sc_is_array($arrJuegos))
<section id="juegos-gratis" class="rounded-xl sm:rounded shadow-xl bg-white p-4 my-4">
<header class="juegos-gratis__header">
<h2>Juegos en oferta gratis</h2>
<hr class="my-4">
</header>

<div id="juegos-gratis__contenedor" class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-2 overflow-auto scrollbar" style="max-height: 500px">

@foreach ( $arrJuegos as $game)
@if($game->worth != 'N/A')
<div class="h-full rounded-sm flex flex-col overflow-hidden">
<img class="md:w-48 rounded-t-md mx-auto" src="{{ $game->thumbnail }}" alt="" width="" height="120">
<p class="text-lg font-semibold">{{ sc_str_reemplazar_expresion_regular($game->title,'(Free\s)|(Get\s)|(\s?on\sPC)|\(PC\)|(for FREE(\s\W)?)|(!$)','') }}</p>
<p class=""><span class="text-sm font-semibold line-through text-red-600">{{ $game->worth }}</span> <span class="font-semibold text-green-500">Gratis</span></p>
<a class="flex items-center mt-auto block button is-primary p-1 justify-content-center rounded-xl" target="_blank" href="{{ $game->open_giveaway_url }}">Ver oferta</a>
</div>
@endif
@endforeach
</div>
<footer id="juegos-gratis__footer" class="bg-transparent">
<hr class="my-4">
<p class="text-muted">Datos obtenidos de <a target="_blank" class="text-muted font-semibold " href="//www.gamerpower.com/">www.gamerpower.com</a></p>
</footer>
</section>
@else
<script id="get-games">
function getGames() {
$.ajax({
Expand Down Expand Up @@ -76,4 +46,3 @@ function getGames() {
});
}
</script>
@endif

0 comments on commit d4b0178

Please sign in to comment.