update
This commit is contained in:
@@ -54,11 +54,11 @@ class ShowIndexServicio extends Component
|
||||
$this->fecha= $date->format('Y-m-d');
|
||||
|
||||
if (!empty($this->tarifa_id)) {
|
||||
|
||||
|
||||
|
||||
$tarifas = Tarifas::with('servicio')->where('id', $this->tarifa_id)->first();
|
||||
$this->fecha_final_1 = $today = Carbon::now()->addDays($tarifas->dias-15);
|
||||
$this->fecha_final_2 = $today = Carbon::now()->addDays($tarifas->dias+15);
|
||||
|
||||
$tarifas = Tarifas::with('servicio')->where('id', $this->tarifa_id)->first();
|
||||
|
||||
$cuentas_creadas = Cuentas::whereDate('inicio','>=',$this->fecha)->where('servicio_id',$this->servicio_id)->where('estado','activo')->get();
|
||||
$cuentas_tomadas = Historial_cuenta::whereIn('cuenta_id', $cuentas_creadas->pluck('id'))->count();
|
||||
|
||||
Reference in New Issue
Block a user