This commit is contained in:
lizandrogd
2023-10-07 08:42:57 -05:00
parent 1124b737c6
commit 8e19bd129e
22 changed files with 727 additions and 523 deletions
+3 -3
View File
@@ -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();