public function update(TaskRequest $request, Task $task)
    {
        try {
            $attributes = $request->all();

            $task->update($attributes);
            return $this->response->message(trans('messages.success.updated', ['Module' => trans('task::task.name')]))
                ->code(204)
                ->status('success')
                ->url(guard_url('task/task/status?search[status]=' . $task->status))
                ->redirect();
        } catch (Exception $e) {
            return $this->response->message($e->getMessage())
                ->code(400)
                ->status('error')
                ->url(guard_url('task/task/status?search[status]=' . $task->status))
                ->redirect();
        }

    }