totalIngresos); } #[Computed] public function totalEfectivo() { return $this->turno->efectivo()->first()?->total ?? 0; } #[Computed] public function totalEgresos() { return $this->turno->egresos()->sum('valor'); } #[Computed] public function totalDocumentos() { return $this->turno->documentos()->sum('valor'); } #[Computed] public function rendido() { return $this->turno->rendido; } #[Computed] public function debeRendir() { return $this->turno->ingresos()->sum('total'); } #[Computed] public function diferencia() { return $this->turno->arqueo; } }