From 455a7bddd505dda745576a0084b338b547da4a05 Mon Sep 17 00:00:00 2001 From: Vero Torrenegra Date: Mon, 9 Dec 2024 00:15:55 -0500 Subject: [PATCH 1/2] card update --- Modules/Raffle/app/Models/Raffle.php | 3 +- package-lock.json | 7 +- .../js/Components/Dashboard/ActiveRaffles.vue | 10 +- .../js/Components/Dashboard/RaffleCard.vue | 347 +++++++----------- 4 files changed, 138 insertions(+), 229 deletions(-) diff --git a/Modules/Raffle/app/Models/Raffle.php b/Modules/Raffle/app/Models/Raffle.php index fc9e52b..a8bc159 100644 --- a/Modules/Raffle/app/Models/Raffle.php +++ b/Modules/Raffle/app/Models/Raffle.php @@ -45,4 +45,5 @@ public function tickets() { return $this->hasMany(Ticket::class, 'raffle_id'); } -} + +} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 5a2b34e..4d199d0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4,6 +4,7 @@ "requires": true, "packages": { "": { + "name": "gananza", "dependencies": { "@headlessui/vue": "^1.7.23", "@splidejs/vue-splide": "^0.6.12", @@ -1570,9 +1571,9 @@ } }, "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dev": true, "license": "MIT", "dependencies": { diff --git a/resources/js/Components/Dashboard/ActiveRaffles.vue b/resources/js/Components/Dashboard/ActiveRaffles.vue index b3bc4dc..5a812dc 100644 --- a/resources/js/Components/Dashboard/ActiveRaffles.vue +++ b/resources/js/Components/Dashboard/ActiveRaffles.vue @@ -3,12 +3,18 @@

Rifas Activas

-
+
No hay rifas activas en este momento.
-
+
-
- - Prize - -

{{ raffle.name }}

-

Organizador: {{ raffle.organizer.name }}

-

- Ticket de precios ${{ raffle.ticket_price }} -

- - +
+ +
+ +
+

¡Ya terminó!

+

+ {{ countdown.days }} : + {{ countdown.hours }} : + {{ countdown.minutes }} : + {{ countdown.seconds }} +

+
+ Prize +
+ + +
+

{{ raffle.name }}

+

Organizador: {{ raffle.organizer.name }}

+

+ Precio: ${{ raffle.ticket_price }} +

+

Números disponibles: {{ raffle.total_tickets }}

+

Total vendido: ${{ raffle.total_sales }}

+

Fecha de juego:
{{ raffle.end_date }}

+ + + +

+ Rifa finalizada +

+
-
+
+ + +
+ + +
+
- Página {{ currentPage }} de {{ totalPages }}
+
Página {{ currentPage }} de {{ totalPages }}
@@ -80,7 +127,8 @@
-
{{ selectedNumber.join(', ') || 'Ninguno' }} +
+ {{ selectedNumber.join(', ') || 'Ninguno' }}
- - - - - - - - - - - -

Aquí va la pasarela de pagos

- - -
-
-
-
From 63db9c99942ffaa0ed1633e6408ea8889e6f329f Mon Sep 17 00:00:00 2001 From: Vero Torrenegra Date: Mon, 9 Dec 2024 00:51:25 -0500 Subject: [PATCH 2/2] edit card --- .../js/Components/Dashboard/RaffleCard.vue | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/resources/js/Components/Dashboard/RaffleCard.vue b/resources/js/Components/Dashboard/RaffleCard.vue index 39e3726..eab38e6 100644 --- a/resources/js/Components/Dashboard/RaffleCard.vue +++ b/resources/js/Components/Dashboard/RaffleCard.vue @@ -35,8 +35,6 @@

Números disponibles: {{ raffle.total_tickets }}

Total vendido: ${{ raffle.total_sales }}

Fecha de juego:
{{ raffle.end_date }}

- - +

-

+
- -

Factura

@@ -126,7 +123,7 @@
{{ userName || 'None' }}
- +
{{ selectedNumber.join(', ') || 'Ninguno' }}
@@ -147,7 +144,6 @@