Skip to content

Commit

Permalink
Merge pull request #97 from Crudzaso/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
DiegoAndresRamirez authored Dec 9, 2024
2 parents d74d482 + 44474dc commit 1e702b7
Show file tree
Hide file tree
Showing 4 changed files with 183 additions and 239 deletions.
3 changes: 2 additions & 1 deletion Modules/Raffle/app/Models/Raffle.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,5 @@ public function tickets()
{
return $this->hasMany(Ticket::class, 'raffle_id');
}
}

}
7 changes: 4 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions resources/js/Components/Dashboard/ActiveRaffles.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,18 @@
<h2 :class="['text-2xl font-bold mb-6 text-center', theme.textPrimary]">Rifas Activas</h2>

<!-- Mensaje si no hay rifas -->
<div v-if="raffles.data.length === 0" :class="theme.textSecondary">
<div
v-if="raffles.data.length === 0"
:class="theme.textSecondary"
>
No hay rifas activas en este momento.
</div>

<!-- Grid de Rifas (1 fila con 3 cartas) -->
<div v-else class="container mx-auto w-full grid grid-cols-1 md:grid-cols-3 gap-6">
<div
v-else
class="container mx-auto w-full grid grid-cols-1 md:grid-cols-3 gap-10"
>
<RaffleCard
v-for="raffle in raffles.data.slice(0, 3)"
:key="raffle.id"
Expand Down
Loading

0 comments on commit 1e702b7

Please sign in to comment.