update ver tarifas
This commit is contained in:
@@ -123,7 +123,7 @@ class ShowPlanes extends Component
|
|||||||
if ($this->servicio_modTarifas) {
|
if ($this->servicio_modTarifas) {
|
||||||
$this->tarifas = Tarifas::with('rol')
|
$this->tarifas = Tarifas::with('rol')
|
||||||
->where('servicio_id', $this->servicio_modTarifas)
|
->where('servicio_id', $this->servicio_modTarifas)
|
||||||
->where('estado', 'activo')
|
// ->where('estado', 'activo')
|
||||||
->get();
|
->get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -16,12 +16,9 @@
|
|||||||
<table>
|
<table>
|
||||||
@foreach ($categorias as $categoria1)
|
@foreach ($categorias as $categoria1)
|
||||||
<td>
|
<td>
|
||||||
<div class="cursor-pointer transition hover:scale-[1.05] w-[250px] h-[250px] sm:w-[450px] sm:h-[450px] mx-4"
|
<div class="cursor-pointer transition hover:scale-[1.05] w-[250px] h-[250px] sm:w-[450px] sm:h-[450px] mx-4" x-on:click="categorian='{{ $categoria1->nombre }}'">
|
||||||
x-on:click="categorian='{{ $categoria1->nombre }}'">
|
|
||||||
|
|
||||||
<img src="{{ asset($categoria1->imagen) }}"
|
<img src="{{ asset($categoria1->imagen) }}" class="w-full m-auto rounded-lg object-cover h-full object-center shadow" alt="imagen de {{ $categoria1->nombre }}">
|
||||||
class="w-full m-auto rounded-lg object-cover h-full object-center shadow"
|
|
||||||
alt="imagen de {{ $categoria1->nombre }}">
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -791,7 +791,8 @@
|
|||||||
<table class="w-full sm-w-[20rem] text-center mt-4 border-separate border-spacing-y-2 mb-4">
|
<table class="w-full sm-w-[20rem] text-center mt-4 border-separate border-spacing-y-2 mb-4">
|
||||||
<thead class="font-normal bg-[#000029] text-white h-9">
|
<thead class="font-normal bg-[#000029] text-white h-9">
|
||||||
<tr class="text-left">
|
<tr class="text-left">
|
||||||
<th class="rounded-l-lg font-normal pl-[1rem]">Rol</th>
|
<th class="rounded-l-lg font-normal pl-[1rem]">Estado</th>
|
||||||
|
<th class="font-normal pl-[1rem]">Rol</th>
|
||||||
<th class="font-normal pl-[1rem] whitespace-nowrap">Pantallas</th>
|
<th class="font-normal pl-[1rem] whitespace-nowrap">Pantallas</th>
|
||||||
<th class="font-normal pl-[1rem]">Valor</th>
|
<th class="font-normal pl-[1rem]">Valor</th>
|
||||||
<th class="font-normal pl-[1rem]">Dias</th>
|
<th class="font-normal pl-[1rem]">Dias</th>
|
||||||
@@ -804,6 +805,13 @@
|
|||||||
@if (!empty($tarifas))
|
@if (!empty($tarifas))
|
||||||
@foreach ($tarifas as $tarifa)
|
@foreach ($tarifas as $tarifa)
|
||||||
<tr class="border-gray-200 text-left w-full pl-4">
|
<tr class="border-gray-200 text-left w-full pl-4">
|
||||||
|
<td class="pl-[1rem]">
|
||||||
|
@if ($tarifa->estado == 'activo')
|
||||||
|
<div class="bg-green-500 rounded-full w-3 h-3"></div>
|
||||||
|
@else
|
||||||
|
<div class="bg-red-500 rounded-full w-3 h-3"></div>
|
||||||
|
@endif
|
||||||
|
</td>
|
||||||
<td class="pl-[1rem]">{{ $tarifa->rol->nombre ?? '' }}</td>
|
<td class="pl-[1rem]">{{ $tarifa->rol->nombre ?? '' }}</td>
|
||||||
<td class="pl-[1rem]">{{ $tarifa->pantallas ?? '' }}</td>
|
<td class="pl-[1rem]">{{ $tarifa->pantallas ?? '' }}</td>
|
||||||
<td class="pl-[1rem]">{{ $tarifa->valor ?? '' }}</td>
|
<td class="pl-[1rem]">{{ $tarifa->valor ?? '' }}</td>
|
||||||
|
|||||||
@@ -85,12 +85,9 @@
|
|||||||
<table>
|
<table>
|
||||||
@foreach ($categorias as $categoria1)
|
@foreach ($categorias as $categoria1)
|
||||||
<td>
|
<td>
|
||||||
<div class="cursor-pointer transition hover:scale-[1.05] w-[250px] h-[250px] sm:w-[350px] sm:h-[350px] mx-4"
|
<div class="cursor-pointer transition hover:scale-[1.05] w-[250px] h-[250px] sm:w-[350px] sm:h-[350px] mx-4" x-on:click="categorian='{{ $categoria1->nombre }}'">
|
||||||
x-on:click="categorian='{{ $categoria1->nombre }}'">
|
|
||||||
|
|
||||||
<img src="{{ asset($categoria1->imagen) }}"
|
<img src="{{ asset($categoria1->imagen) }}" class="w-full m-auto rounded-lg object-cover h-full object-center shadow" alt="imagen de {{ $categoria1->nombre }}">
|
||||||
class="w-full m-auto rounded-lg object-cover h-full object-center shadow"
|
|
||||||
alt="imagen de {{ $categoria1->nombre }}">
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -106,9 +106,7 @@
|
|||||||
<tr class="border-gray-200 text-left w-full sm:pl-4 hover:bg-gray-200 hover:ring-gray-500"
|
<tr class="border-gray-200 text-left w-full sm:pl-4 hover:bg-gray-200 hover:ring-gray-500"
|
||||||
x-data="{ openOption: false }">
|
x-data="{ openOption: false }">
|
||||||
<td class="sm:pl-[2rem] w-full py-2">
|
<td class="sm:pl-[2rem] w-full py-2">
|
||||||
<img src="{{ asset($servicio->img) }}"
|
<img src="{{ asset($servicio->img) }}" class=" w-24 sm:w-28 m-auto rounded-lg object-cover h-12 sm:h-14 object-center shadow" alt="{{ $servicio->nombre }}">
|
||||||
class=" w-24 sm:w-28 m-auto rounded-lg object-cover h-12 sm:h-14 object-center shadow"
|
|
||||||
alt="">
|
|
||||||
</td>
|
</td>
|
||||||
<td class="sm:pr-[2rem] hidden sm:table-cell">
|
<td class="sm:pr-[2rem] hidden sm:table-cell">
|
||||||
{{ $servicio->id }}
|
{{ $servicio->id }}
|
||||||
|
|||||||
@@ -59,8 +59,7 @@
|
|||||||
wire:click="consultaTarifa({{ $servicio1 }})">
|
wire:click="consultaTarifa({{ $servicio1 }})">
|
||||||
<img src="{{ asset($servicio1->img) }}"
|
<img src="{{ asset($servicio1->img) }}"
|
||||||
class="w-full m-auto rounded-lg object-cover h-full object-center shadow"
|
class="w-full m-auto rounded-lg object-cover h-full object-center shadow"
|
||||||
alt="">
|
alt="imagen de {{ $servicio1->nombre }}">
|
||||||
<!--p>{{ $servicio1->nombre }}</p-->
|
|
||||||
</button>
|
</button>
|
||||||
</td>
|
</td>
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|||||||
Reference in New Issue
Block a user