def index
    case
    when @agent
      @creates = @agent.creates.order('creates.position').page(params[:page])
    when @work