From 0e980ab00a830daa4885e809ab0a24fc8fae6ae5 Mon Sep 17 00:00:00 2001 From: lizandrogd <77708265+lizandrogd@users.noreply.github.com> Date: Wed, 26 Jul 2023 11:39:04 -0500 Subject: [PATCH] update --- app/Http/Livewire/ShowServicio.php | 5 ++++ .../views/livewire/show-servicio.blade.php | 23 +++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/app/Http/Livewire/ShowServicio.php b/app/Http/Livewire/ShowServicio.php index b33e614..4baf761 100644 --- a/app/Http/Livewire/ShowServicio.php +++ b/app/Http/Livewire/ShowServicio.php @@ -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; } } \ No newline at end of file diff --git a/resources/views/livewire/show-servicio.blade.php b/resources/views/livewire/show-servicio.blade.php index 43421ff..fc438e9 100644 --- a/resources/views/livewire/show-servicio.blade.php +++ b/resources/views/livewire/show-servicio.blade.php @@ -96,6 +96,7 @@