db); $i = Invoice::withTrashed()->find($this->invoice_id); if(!$i) return; if($i->status_id == Invoice::STATUS_SENT) { $i->service()->removeUnpaidGatewayFees(); } } }