update
This commit is contained in:
@@ -36,6 +36,7 @@ class ShowServicio extends Component
|
||||
public $completa;
|
||||
public $ver_url;
|
||||
public $url;
|
||||
public $precio;
|
||||
public $renovacion = false;
|
||||
|
||||
protected $rules = [
|
||||
@@ -108,6 +109,7 @@ class ShowServicio extends Component
|
||||
$servicio->ver_url = $this->ver_url;
|
||||
$servicio->url = $this->url;
|
||||
$servicio->renovacion = $this->renovacion;
|
||||
$servicio->precio = $this->precio;
|
||||
$servicio->save();
|
||||
|
||||
$this->alert('success', 'Servicio creado correctamente!', [
|
||||
@@ -138,6 +140,7 @@ class ShowServicio extends Component
|
||||
$this->ver_url = $consulta_servicios->ver_url;
|
||||
$this->url = $consulta_servicios->url;
|
||||
$this->renovacion = $consulta_servicios->renovacion == 1 ? true : false;
|
||||
$this->precio = $consulta_servicios->precio;
|
||||
}
|
||||
public function guardar()
|
||||
{
|
||||
@@ -197,6 +200,7 @@ class ShowServicio extends Component
|
||||
'ver_url' => $this->ver_url,
|
||||
'url' => $this->url,
|
||||
'renovacion' => $this->renovacion == 1 ? true : false,
|
||||
'precio'=> $this->precio
|
||||
]);
|
||||
|
||||
$this->serviciosEditar = false;
|
||||
@@ -261,5 +265,6 @@ class ShowServicio extends Component
|
||||
$this->completa = null;
|
||||
$this->tiempo = null;
|
||||
$this->renovacion = null;
|
||||
$this->servicio = null;
|
||||
}
|
||||
}
|
||||
@@ -96,6 +96,7 @@
|
||||
<th class="font-normal w-1/12 pl-[1rem] sm:pr-[2rem]">Contraseña de perfiles</th>
|
||||
<th class="font-normal w-1/12 pl-[1rem] sm:pr-[2rem]">URL</th>
|
||||
<th class="font-normal w-1/12 pl-[1rem] sm:pr-[2rem]">Renovación</th>
|
||||
<th class="font-normal w-1/12 pl-[1rem] sm:pr-[2rem]">Precio</th>
|
||||
<th class="rounded-r-lg font-normal pr-[1rem] pl-[1rem] sm:pr-[2rem] sm:pl-[2rem] w-1/11">
|
||||
</th>
|
||||
</tr>
|
||||
@@ -165,6 +166,10 @@
|
||||
</svg>
|
||||
@endif
|
||||
|
||||
</td>
|
||||
<td class="pl-[1rem] sm:pl-[2rem] text-center border-x">
|
||||
{{ $servicio->precio ?? '' }}
|
||||
|
||||
</td>
|
||||
<td class="md:pl-[2rem] md:pr-[2rem]">
|
||||
<button x-on:click="openOption=!openOption">
|
||||
@@ -263,6 +268,15 @@
|
||||
<span class="text-red-400 text-sm ">Requerido*</span>
|
||||
@enderror
|
||||
</div>
|
||||
<div class="mb-4">
|
||||
<label for="precio"
|
||||
class="block text-gray-700 text-sm font-bold mb-2">Precio:</label>
|
||||
<input type="tel" id="precio" wire:model="precio"
|
||||
class="border-2 border-neutral-200 rounded-[0.8rem] shadow apperance-none focus:border-neutral-300 focus:ring-0 w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline">
|
||||
@error('precio')
|
||||
<span class="text-red-400 text-sm">Requerido*</span>
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
<div class="my-2 border-y">
|
||||
<label for="perfiles" class=" text-gray-700 text-sm font-bold mb-2 ">Mostrar perfiles</label>
|
||||
@@ -422,6 +436,15 @@
|
||||
<span class="text-red-400 text-sm">Requerido*</span>
|
||||
@enderror
|
||||
</div>
|
||||
<div class="mb-4">
|
||||
<label for="precio"
|
||||
class="block text-gray-700 text-sm font-bold mb-2">Precio:</label>
|
||||
<input type="tel" id="precio" wire:model="precio"
|
||||
class="border-2 border-neutral-200 rounded-[0.8rem] shadow apperance-none focus:border-neutral-300 focus:ring-0 w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline">
|
||||
@error('precio')
|
||||
<span class="text-red-400 text-sm">Requerido*</span>
|
||||
@enderror
|
||||
</div>
|
||||
<div class="my-2 border-y">
|
||||
<label for="perfiles" class=" text-gray-700 text-sm font-bold mb-2 ">Mostrar perfiles</label>
|
||||
<input type="checkbox" name="perfiles" id="perfiles" wire:model="perfiles">
|
||||
|
||||
Reference in New Issue
Block a user