/** * Dismisses all reports for an IP and returns the user back to the reports page. * Handles /report/{report}/dismiss-ip * * @return Response */ public function getDismissIp(Report $report) { if (!$report->canView($this->user)) { abort(403); } $reports = Report::whereOpen()->whereResponsibleFor($this->user)->where('reporter_ip', $report->reporter_ip)->update(['is_dismissed' => true, 'is_successful' => false]); return redirect()->back()->withSuccess(trans_choice("panel.reports.dismisssed", $reports, ['reports' => $reports])); }