This commit is contained in:
lizandrogd
2023-07-26 11:39:04 -05:00
parent c100a2acd6
commit 0e980ab00a
2 changed files with 28 additions and 0 deletions
+5
View File
@@ -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;
}
}