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 }}

Factura

@@ -48,10 +124,15 @@
{{ userName || 'None' }}
- -
{{ selectedNumber.join(', ') || 'Ninguno' }}
+ +
+ {{ selectedNumber.join(', ') || 'Ninguno' }} +
-
@@ -59,236 +140,91 @@
- - - - -
- - - - - - - - - - - - - - - -
NombreTus NumerosTotal a pagar
{{ userName }}{{ selectedNumber.join(', ') || 'None' }} - ${{ selectedNumber.length > 0 ? (raffle.ticket_price * selectedNumber.length).toFixed(2) : '0.00' }} -
-
- -
- - -
-
-
-
-