upd
This commit is contained in:
@@ -86,10 +86,9 @@ class ShowServicios extends Component
|
||||
$this->email_tarjetaPlan = $this->usuario_actual->email;
|
||||
$this->celular_tarjetaPlan = $this->usuario_actual->celular;
|
||||
}
|
||||
if (!empty($this->cantidad_tarjetaPlan)) {
|
||||
if ($this->cantidad_tarjetaPlan > 1) {
|
||||
//dd($this->tarifa_id);
|
||||
//$this->cargartarjetaPlan($this->tarifa_id);
|
||||
|
||||
$this->cargartarjetaPlan($this->tarifa_id);
|
||||
}
|
||||
|
||||
|
||||
@@ -118,7 +117,7 @@ class ShowServicios extends Component
|
||||
//Al abrir la tarjeta del servicio
|
||||
public function cargartarjetaPlan($id)
|
||||
{
|
||||
//$this->tarjetaPlan=false;
|
||||
$this->tarifa_id = $id; //$this->tarjetaPlan=false;
|
||||
//Buscar tarifas por el id
|
||||
$tarifa_seleccionada = Tarifas::find($id);
|
||||
//Traer el servicio relacionado con esa tarifa
|
||||
@@ -208,6 +207,12 @@ class ShowServicios extends Component
|
||||
$this->tarjetaPlan = true;
|
||||
}
|
||||
|
||||
public function cerrartarjetaPlan(){
|
||||
$this->cantidad_tarjetaPlan = 1;
|
||||
$this->tarjetaPlan = false;
|
||||
$this->tarifa_id = '';
|
||||
|
||||
}
|
||||
|
||||
public function notificacionPocas($servicio, $restantes)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user