From 82de69e8549849ae7c7cc66dbd3b3464aaee8ae6 Mon Sep 17 00:00:00 2001 From: Felipe Date: Tue, 23 Jan 2024 10:42:36 -0500 Subject: [PATCH] update ver tarifas --- app/Http/Livewire/ShowPlanes.php | 2 +- .../livewire/show-index-categoria.blade.php | 35 +++++++++---------- .../views/livewire/show-planes.blade.php | 28 +++++++++------ .../views/livewire/show-promociones.blade.php | 7 ++-- .../views/livewire/show-servicio.blade.php | 4 +-- .../views/livewire/show-servicios.blade.php | 7 ++-- 6 files changed, 41 insertions(+), 42 deletions(-) diff --git a/app/Http/Livewire/ShowPlanes.php b/app/Http/Livewire/ShowPlanes.php index 4d08333..88b15d6 100755 --- a/app/Http/Livewire/ShowPlanes.php +++ b/app/Http/Livewire/ShowPlanes.php @@ -123,7 +123,7 @@ class ShowPlanes extends Component if ($this->servicio_modTarifas) { $this->tarifas = Tarifas::with('rol') ->where('servicio_id', $this->servicio_modTarifas) - ->where('estado', 'activo') + // ->where('estado', 'activo') ->get(); } diff --git a/resources/views/livewire/show-index-categoria.blade.php b/resources/views/livewire/show-index-categoria.blade.php index 8f356e5..76fe771 100755 --- a/resources/views/livewire/show-index-categoria.blade.php +++ b/resources/views/livewire/show-index-categoria.blade.php @@ -1,8 +1,8 @@
- - + +
@@ -16,13 +16,10 @@ @foreach ($categorias as $categoria1) @endforeach @@ -51,7 +48,7 @@ - +
@@ -71,7 +68,7 @@
- + @endif @endforeach @@ -89,24 +86,24 @@ x-transition:leave-end="opacity-0 scale-100" class="fixed backdrop-blur-sm bg-black/20 left-0 bottom-0 top-0 right-0 h-full z-10">
- +
- + @foreach ($categorias as $categoria1) - +
- + - - + +
- + @endforeach - + diff --git a/resources/views/livewire/show-planes.blade.php b/resources/views/livewire/show-planes.blade.php index 62f7877..9fe6def 100755 --- a/resources/views/livewire/show-planes.blade.php +++ b/resources/views/livewire/show-planes.blade.php @@ -361,7 +361,7 @@ - @endif + @endif @endif @endif @@ -472,23 +472,23 @@
{{-- @if (!empty($consulta_verUsuarios->servicio->perfiles)) - +
+ @endfor + @endif +
- + @endif --}} @if (!empty($consulta_verUsuarios->servicio->tarifas)) @@ -506,7 +506,7 @@ @endif @else @if ($tarifaItem->rol_id == '5' && ($tarifaItem->pantallas < ($tarifaItem->servicio->pantallas - count($consulta_verUsuarios->historiales)))) - + @if ($tarifaItem->servicio->por_tiempo) @else @@ -791,7 +791,8 @@
-
- - imagen de {{ $categoria1->nombre }} - +
+ + imagen de {{ $categoria1->nombre }} +
- + + @@ -804,6 +805,13 @@ @if (!empty($tarifas)) @foreach ($tarifas as $tarifa) + diff --git a/resources/views/livewire/show-promociones.blade.php b/resources/views/livewire/show-promociones.blade.php index 393b7ff..1da00c3 100755 --- a/resources/views/livewire/show-promociones.blade.php +++ b/resources/views/livewire/show-promociones.blade.php @@ -85,12 +85,9 @@
RolEstadoRol Pantallas Valor Dias
+ @if ($tarifa->estado == 'activo') +
+ @else +
+ @endif +
{{ $tarifa->rol->nombre ?? '' }} {{ $tarifa->pantallas ?? '' }} {{ $tarifa->valor ?? '' }}
@foreach ($categorias as $categoria1) diff --git a/resources/views/livewire/show-servicio.blade.php b/resources/views/livewire/show-servicio.blade.php index 1438198..a6ae2d6 100755 --- a/resources/views/livewire/show-servicio.blade.php +++ b/resources/views/livewire/show-servicio.blade.php @@ -106,9 +106,7 @@ @endforeach @@ -391,7 +390,7 @@ @php $n = 0; @endphp - + @foreach ($cuentas->cuentas->unique() as $cuenta) @php $n++; @@ -565,7 +564,7 @@ *Usuario:* {{ trim($cuenta->correo) }} *Contraseña:* {{ trim($cuenta->password) }} @endforeach - +
-
+
- imagen de {{ $categoria1->nombre }} + imagen de {{ $categoria1->nombre }}
- + {{ $servicio->nombre }}