/** * @return mixed */ public function bulk() { $action = Input::get('action'); $amount = Input::get('amount'); $ids = Input::get('public_id') ? Input::get('public_id') : Input::get('ids'); $count = $this->paymentService->bulk($ids, $action, ['amount' => $amount]); if ($count > 0) { $message = Utils::pluralize($action == 'refund' ? 'refunded_payment' : $action . 'd_payment', $count); Session::flash('message', $message); } return redirect()->to('payments'); }